TTkMouseEvent🌶️
- class TTkMouseEvent(x: int, y: int, key: int, evt: int, mod: int, tap: int, raw: str)[source]🌶️
Bases:
objectMouse 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.MouseKeyreported in this event (i.e.LeftButton)
- mod: KeyModifier🌶️
The
TTkConstant.KeyModifierused, defaultNoModifier
- evt: MouseEvent🌶️
The
TTkConstant.MouseEventreported 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🌶️