Entry
How can I make a tkinter window unsizeable?
Aug 27th, 2000 22:31
unknown unknown, Matthew Dixon Cowles
Problem:
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).
Solution:
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