pythonware.com products ::: library ::: search ::: daily Python-URL!

Library

An Introduction to Tkinter

Window Geometry Methods :::

   

Window Geometry Methods

Back Next

Window Geometry Methods

geometry

geometry(). Returns a string describing self's "geometry". The string has the following format:

"%dx%d%+d%+d" % (width, height, xoffset, yoffset)

where all coordinates are given in pixels.

geometry

geometry(geometry). Change the geometry for self. The string format is as described above.

aspect

aspect(minNumer, minDenom, maxNumer, maxDenom), aspect(). Control the aspect ratio of this window.

If no arguments are given, this method returns the current constraints as a 4-tuple, if any.

maxsize

maxsize(width, height), maxsize(). Set (get) the maximum size for this window.

minsize

minsize(width, height), minsize(). Set (get) the minimum size for this window.

resizable

resizable(width, height), resizable(). Set (get) the resize flags.

Back Next