TermTk.TTkCore.TTkTerm.inputmouse

TTkMouseEvent

class TTkMouseEvent(x: int, y: int, key: int, evt: int, mod: int, tap: int, raw: str)[source]

Mouse Events

Demo

test.input.py

x: int

The horizontal (x) position relative to the widget

y: int

The vertical (y) position relative to the widget

key: MouseKey

The MouseKey reported in this event (i.e. LeftButton)

mod: KeyModifier

The KeyModifier used, default NoModifier

evt: MouseEvent

The 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)