[Tkinter-discuss] prevent a Tkinter app from maximizing?

Jeff Epler jepler at unpythonic.net
Wed Oct 13 03:46:54 CEST 2004

The wm_minsize and wm_maxsize methods can set the range of sizes users
are permitted to give a particular toplevel.  Note that if the window is
already bigger or smaller than this, its size is not immediately
changed.  But when the user attempts to resize it, the minimum and
maximum will be enforced.

You can also use the wm_resizable method to make the window

How setting or removing these flags affects the window's decorations is
highly dependant on window manager.  On my window manager, only
wm_resizable(0,0) removes the maximize button, but wm_maxsize(400,400)
makes "maximize" keep the content area of the window only 400x400.  I
think the behavior on most flavors of Windows is similar to this

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tkinter-discuss/attachments/20041012/1b5c1625/attachment.pgp

More information about the Tkinter-discuss mailing list