TTkKeyEvent🌶️
- class TTkKeyEvent(type: int, key: str, code: str, mod: int)[source]🌶️
Bases:
object
Keyboard 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 theSpecialKey
type
- type: KeyType🌶️
The key input
TTkConstant.KeyType
recorded
- key: str🌶️
the input key
- code: str🌶️
The terminal code used to represent this input
- mod: KeyModifier🌶️
The
TTkConstant.KeyModifier
used by theSpecialKey
type
Methods🌶️