Mouse Enter Callback
- property Window.mouse_enter_callback: callable
Callback executed when the mouse enters/exits the window.
The callback function receives a bool representing whether the mouse entered or exited a window.
def mouse_enter_callback(entered: bool) -> None: # code here
- Raises
TypeError – callback must be callable
ValueError – callback function must take 1 argument
- Return type
callable