def keyPressEvent(self, event):
super().keyPressEvent(event) #ll.setFocus()
if not event.isAccepted():
if event.key() == Qt.Qt.Key_Right:
_next = self.next_call_list()
if _next and _next.count() > 0:
if all(future.done() for future in
tz.concatv(self.populate_futures, self.add_next_futures)):
_next.setFocus()
self.map_widget.ensureWidgetVisible(_next, 0, 0)
if self.next_call_list().currentItem() is None:
self.next_call_list().setCurrentRow(0)
else:
wait_item = _next.item(0)
wait_item.poked += 1
if wait_item.poked == 3:
wait_item.setText('QUIT POKING ME')
event.accept()
if event.key() == Qt.Qt.Key_Left:
_prev = self.prev_call_list()
if _prev:
_prev.setFocus()
(self.map_widget.ensureWidgetVisible(_prev, 0, 0))
event.accept()
if event.key() == Qt.Qt.Key_Space:
pass
评论列表
文章目录