KeyEvent
Source code in pzp/keys.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
__init__(ch, action)
Key Event represents a key action on the keyboard.
| Parameters: |
|
|---|
| Attributes: |
|
|---|
Source code in pzp/keys.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
KeysHandler
Source code in pzp/keys.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
__init__(keys_binding=None)
Keys handler is a collection of bindings of keys to actions.
| Parameters: |
|
|---|
| Attributes: |
|
|---|
Source code in pzp/keys.py
91 92 93 94 95 96 97 98 99 100 101 102 103 | |
set_key_binding(key, action)
Add a binding for one key to an action
Source code in pzp/keys.py
114 115 116 | |
set_keys_binding(keys, action)
Add a binding for one or more keys to an action
Source code in pzp/keys.py
109 110 111 112 | |
key_to_str(ch)
Return the textual representation of a char
Source code in pzp/keys.py
65 66 67 | |