win.maxmin()

w.maxmin()
w.maxmin()
Toggles between maximized an normal display; equivalent to clicking the second button to the right on the titlebar. Everything done after a manual resize will also be done after calling this function.