TTkMouseEvent🌶️
- class TTkMouseEvent(x: int, y: int, key: int, evt: int, mod: int, tap: int, raw: str)[source]🌶️
Bases:
object
Mouse Events
- Demo:
- x: int🌶️
The horizontal (x) position relative to the widget
- y: int🌶️
The vertical (y) position relative to the widget
- key: MouseKey🌶️
The
TTkConstant.MouseKey
reported in this event (i.e.LeftButton
)
- mod: KeyModifier🌶️
The
TTkConstant.KeyModifier
used, defaultNoModifier
- evt: MouseEvent🌶️
The
TTkConstant.MouseEvent
reported in this event (i.e.Press
)
- tap: int🌶️
The number of tap (keypressed) reported in this event, (i.e. a doubleclick is reported as tap=2)
- raw: str🌶️
The terminal “raw” information reporting this event (Do not use it unless you know what you are looking for)
Methods🌶️