TTkKeyEvent🌶️
- class TTkKeyEvent(type: int, key: str | int, code: str, mod: int)[source]🌶️
Bases:
objectKeyboard Events
- Demo:
- Parameters:
type (
TTkConstant.KeyType) – The key input type recordedkey (str) – the key
code (str) – The terminal code used to represent this input
mod (
TTkConstant.KeyModifier) – The modifier used by theSpecialKeytype
- type: KeyType🌶️
The key input
TTkConstant.KeyTyperecorded
- key: str🌶️
the input key
- code: str🌶️
The terminal code used to represent this input
- mod: KeyModifier🌶️
The
TTkConstant.KeyModifierused by theSpecialKeytype
Methods🌶️