Resize Callback
- property Window.resize_callback: callable
Callback executed when the window is resized.
It receives the new size, in screen coordinates, of the window when the window is resized.
def resize_callback(width: int, height: int) -> None: # code here
- Raises
TypeError – callback must be callable
ValueError – callback function must take 2 arguments
- Return type
callable