Maximize Callback

property Window.maximize_callback: callable

Callback executed when the window is maximized.

It receives a bool representing whether the window was maximized or restored to normal.

def maximize_callback(maximized: bool) -> None:
    # code here
Raises
  • TypeError – callback must be callable

  • ValueError – callback function must take 1 argument

Return type

callable