Close Callback
- property Window.close_callback: callable
Callback executed when the window is attempted to be closed.
It is called directly after the window’s close flag has been set.
def close_callback() -> None: # code here
- Raises
TypeError – callback must be callable
ValueError – callback function must not take arguments
- Return type
callable