Exemplo n.º 1
0
 def keyPressEvent(self, e):
     if self.ignore_next_key:
         self.ignore_next_key = False
     else:
         QDialog.keyPressEvent(self, e)
Exemplo n.º 2
0
 def keyPressEvent(self, ev):
     if ev.key() in (Qt.Key.Key_Enter, Qt.Key.Key_Return):
         ev.accept()
         return
     return QDialog.keyPressEvent(self, ev)
Exemplo n.º 3
0
 def keyPressEvent(self, e):
     if e.key() == Qt.Key.Key_Return:
         return
     return QDialog.keyPressEvent(self, e)