how to make tkinter window unsizeable
Matthew Dixon Cowles
matt at mondoinfo.com
Sat Aug 26 16:25:57 EDT 2000
On Sat, 26 Aug 2000 20:09:48 GMT, d. savitsky <dsavitsk at e-coli.net>
wrote:
>i have a very simple tkinter interface. the code is more or less
>
>#-----------------------
>def MakeInterface():
> b = Pmw.ScrolledText(root, usehullsize=1, hull_width=400,
> hull_height=300)
> b.pack(side=TOP, expand=0, padx=5, pady=5, anchor=S)
>
>
>if __name__=='__main__':
> root = Tk()
> root.title('Title')
> MakeInterface()
> root.mainloop()
>
>#------------------------
>
>there are a few other things there, but not many. how do i keep the
>user from resizing the window (minimizing i fine).
Doug,
Add
root.resizable(0,0)
after root = Tk().
That's from Fredrik Lundh's excellent An Introduction to Tkinter.
Specifically, the page at (wrapped for line length):
http://www.pythonware.com/library/tkinter/introduction/
x9489-window-geometry-methods.htm
Regards,
Matt
More information about the Python-list
mailing list