Uranium
Application Framework
|
Event regarding the keyboard. More...
Inherits UM.Event.Event.
Public Member Functions | |
None | __init__ (self, int event_type, int key) |
Creates a new key event, passing the event type on to the Event parent class. | |
int | key (self) |
Which key was pressed. More... | |
Event regarding the keyboard.
These events are raised when anything changes in the keyboard state. They keep track of the event type that was given by Qt, for instance whether it was a KeyPressEvent or a KeyReleaseEvent, and they keep track of which key it was.
Only the special keys are tracked (Shirt, Space, Escape, etc.), not the normal letter keys.
int UM.Event.KeyEvent.key | ( | self | ) |
Which key was pressed.
Compare this with KeyEvent.AltKey
, KeyEvent.EnterKey
, etc.