Content Scale Callback
- property Window.content_scale_callback: callable
Callback executed when the window’s content scale changes.
It receives the new content scale of the window.
def content_scale_callback(xscale: float, yscale: float) -> None: # code here
- Raises
TypeError – callback must be callable
ValueError – callback function must take 2 arguments
- Return type
callable