This commit is contained in:
Florian Bruhin 2018-03-01 08:56:39 +01:00
parent fac8d72d8c
commit af6e5b1838

View File

@ -50,6 +50,10 @@ class KeyTestWidget(QWidget):
got_text = pyqtSignal()
def __init__(self, parent=None):
super().__init__(parent)
self.text = None
def keyPressEvent(self, e):
self.text = e.text()
self.got_text.emit()