Tkinter - how to make a "Toplevel" window non-sizeable?

Fredrik Lundh effbot at telia.com
Mon Feb 21 19:18:21 EST 2000


Thomas Lane <tom at parlant.com> wrote:
> Does anyone out there know how to make a Toplevel window non-sizeable?
> I'm trying to make a custom dialog box, but I don't want the user to be
> able to resize it. Is there some other widget that is more appropriate
> than a Toplevel widget for creating a dialog window, or is there some
> attribute I can set that turns off the ability to resize it? As usual,
> any help would be greatly appreciated.

top.resizeable(0, 0)

for more info, see:
http://www.pythonware.com/library/tkinter/introduction/toplevel-window-metho
ds.htm
=> geometry methods

</F>





More information about the Python-list mailing list