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.

Jeff

Attachment: pgpddmUenhycH.pgp
Description: PGP signature

_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to