Created
August 29, 2017 23:11
-
-
Save peroon/7ce1684ed0fc803ef6b35fab87f47105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.QtCore import Qt | |
class LabelingTool(QWidget): | |
def __init__(self): | |
super().__init__() | |
def keyPressEvent(self, event): | |
key = event.key() | |
if key == Qt.Key_Escape: | |
print('esc') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment