def keyPressEvent ( self , event ) : self . keyboard_event ( event . key ( ) , self . keys . ACTION_PRESS , 0 )
keyboard binding function python
Pyqt specific key press callback function . Translates and forwards events to : py : func : keyboard_event .
def keyPressEvent(self, event):
        """
        Pyqt specific key press callback function.
        Translates and forwards events to :py:func:`keyboard_event`.
        """
        self.keyboard_event(event.key(), self.keys.ACTION_PRESS, 0)