[Tkinter-discuss] Help: How I can to disable the maxbutton of a
jepler at unpythonic.net
Sun Jan 9 16:39:30 CET 2005
The wm_maxsize, wm_minsize, and wm_resizable methods of Toplevel widgets
may allow you to do what you want. For instance, when I create a windw
and set wm_resizble(0,0), the maximize decoration is removed from the
window (and greyed out in the window's menu, and the keystroke is
disabled), and the handles to resize the window are also removed. When
I create a window and set wm_maxsize(500,500), then clicking the
maximize button makes the window 500x500, not larger.
Because these commands are just hints for the window manager, the exact
behavior may differ from Windows to Mac to each X11 window manager.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tkinter-discuss/attachments/20050109/5631828f/attachment.pgp
More information about the Tkinter-discuss