Home | Trees | Indices | Help |
|
---|
|
object --+ | Event --+ | KeyEvent
Instance Methods | |||
|
|||
|
|||
Inherited from |
Class Variables | |
type = None String constant representing the type of event. (Inherited from tdl.event.Event) |
Instance Variables | |
string |
key Human readable names of the key pressed. |
string |
char A single character string of the letter or symbol pressed. |
keychar Similar to key but returns a case sensitive letter or symbol instead of 'CHAR'. |
|
boolean | leftAlt |
boolean | rightAlt |
boolean | leftCtrl |
boolean | rightCtrl |
boolean |
shift True if shift was held down during this event. |
boolean |
alt True if alt was held down during this event. |
boolean |
control True if control was held down during this event. |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Instance Variable Details |
keyHuman readable names of the key pressed. Non special characters will show up as 'CHAR'. Can be one of 'NONE', 'ESCAPE', 'BACKSPACE', 'TAB', 'ENTER', 'SHIFT', 'CONTROL', 'ALT', 'PAUSE', 'CAPSLOCK', 'PAGEUP', 'PAGEDOWN', 'END', 'HOME', 'UP', 'LEFT', 'RIGHT', 'DOWN', 'PRINTSCREEN', 'INSERT', 'DELETE', 'LWIN', 'RWIN', 'APPS', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'KP0', 'KP1', 'KP2', 'KP3', 'KP4', 'KP5', 'KP6', 'KP7', 'KP8', 'KP9', 'KPADD', 'KPSUB', 'KPDIV', 'KPMUL', 'KPDEC', 'KPENTER', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', 'F10', 'F11', 'F12', 'NUMLOCK', 'SCROLLLOCK', 'SPACE', 'CHAR' For the actual character instead of 'CHAR' use keychar.
|
charA single character string of the letter or symbol pressed. Special characters like delete and return are not cross-platform. key or keychar should be used instead for special keys. Characters are also case sensitive.
|
keycharSimilar to key but returns a case sensitive letter or symbol instead of 'CHAR'. This variable makes available the widest variety of symbols and should be used for key-mappings or anywhere where a narrower sample of keys isn't needed. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat May 28 16:09:37 2016 | http://epydoc.sourceforge.net |