Minimize Callback

property Window.minimize_callback: callable

Callback executed when the window is minimized.

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

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

  • ValueError – callback function must take 1 argument

Return type

callable