TermTk.TTkCore.TTkTerm.inputkey
TTkKeyEvent
- class TTkKeyEvent(type: int, key: str, code: str, mod: int)[source]
Keyboard Events
- Demo
- Parameters
type (
KeyType
) – The key input type recordedkey (str) – the key
code (str) – The terminal code used to represent this input
mod (
KeyModifier
) – The modifier used by theSpecialKey
type
- key: str
the input key
- code: str
The terminal code used to represent this input
- mod: KeyModifier
The
KeyModifier
used by theSpecialKey
type