示例#1
0
 def keyPressEvent(self, e):
     """Handle default key actions or pass the event to the inherited method
     """
     if (int(e.modifiers()), e.key()) in OWWidget.defaultKeyActions:
         OWWidget.defaultKeyActions[int(e.modifiers()), e.key()](self)
     else:
         QDialog.keyPressEvent(self, e)
示例#2
0
文件: widget.py 项目: cheral/orange3
 def keyPressEvent(self, e):
     """Handle default key actions or pass the event to the inherited method
     """
     if (int(e.modifiers()), e.key()) in OWWidget.defaultKeyActions:
         OWWidget.defaultKeyActions[int(e.modifiers()), e.key()](self)
     else:
         QDialog.keyPressEvent(self, e)