O'Reilly logo

Tkinter GUI Application Development HOTSHOT by Bhaskar Chaudhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Toplevel window methods

These methods enable communication with the window manager. They are available on the root window (Tk), and also on Toplevel instances.

Note that different window managers behave in different ways. For example, some window managers don't support icon windows; some don't support window groups, and so on.

aspect = wm_aspect(self, minNumer=None, minDenom=None, maxNumer=None, maxDenom=None)

Instruct the window manager to set the aspect ratio (width/height) of this widget to be between minNumer/minDenom and maxNumer/maxDenom. Return a tuple of the actual values if no argument is given.

attributes = wm_attributes(self, *args)

This subcommand returns or sets platform-specific attributes. The first form returns a list ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required