Position Callback
- property Window.position_callback: callable
Callback executed when the window is moved.
It receives the new position, in screen coordinates, of the upper-left corner of the window.
def position_callback(xpos: int, ypos: int) -> None: # code here
- Raises
TypeError – callback must be callable
ValueError – callback function must take 2 arguments
- Return type
callable