@@ -47,14 +47,20 @@ def drag(start_x: int, start_y: int, end_x: int, end_y: int, absolute: bool = Tr
47
47
def on_button (
48
48
callback : Callable [..., None ],
49
49
args : _Ts = (),
50
+ # Omitting default: Darwin has no x and x2
50
51
buttons : list [_MouseButton ] | tuple [_MouseButton , ...] | _MouseButton = ...,
52
+ # Omitting default: Darwin and Linux don't have "double", yet the defaults includes it
51
53
types : list [_MouseEventType ] | tuple [_MouseEventType , ...] | _MouseEventType = ...,
52
54
) -> _Callback : ...
53
55
def on_click (callback : Callable [..., None ], args : _Ts = ()) -> _Callback : ...
54
56
def on_double_click (callback : Callable [..., None ], args : _Ts = ()) -> _Callback : ...
55
57
def on_right_click (callback : Callable [..., None ], args : _Ts = ()) -> _Callback : ...
56
58
def on_middle_click (callback : Callable [..., None ], args : _Ts = ()) -> _Callback : ...
57
- def wait (button : _MouseButton = "left" , target_types : tuple [_MouseEventType ] = ...) -> None : ...
59
+ def wait (
60
+ button : _MouseButton = "left" ,
61
+ # Omitting default: Darwin and Linux don't have "double", yet the defaults includes it
62
+ target_types : tuple [_MouseEventType , ...] = ...,
63
+ ) -> None : ...
58
64
59
65
if sys .platform == "win32" :
60
66
def get_position () -> tuple [c_long , c_long ]: ...
0 commit comments