Entry
How can I make a tkinter window unsizeable?
Oct 17th, 2009 06:18
adel85 adel85, Scott Mandarich, 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
http://www.borsaat.com/vb/f2/
http://www.borsaat.com/vb/f4/
http://www.borsaat.com/vb/f8/
http://www.borsaat.com/vb/f14/
http://www.borsaat.com/vb/f28/
http://www.borsaat.com/vb/f30/
http://www.borsaat.com/vb/f10/
http://www.borsaat.com/vb/f11/
http://www.borsaat.com/vb/f12/
http://www.borsaat.com/vb/f13/
http://www.borsaat.com/vb/f6/
http://www.borsaat.com/vb/f64/
http://www.borsaat.com/vb/f38/
http://www.borsaat.com/vb/f41/
http://www.borsaat.com/vb/f44/
http://www.borsaat.com/vb/f56/
http://www.borsaat.com/vb/f45/
http://www.borsaat.com/vb/f65/
http://www.borsaat.com/vb/f57/
http://www.borsaat.com/vb/f23/
http://www.borsaat.com/vb/f54/
http://www.borsaat.com/vb/f22/
http://www.borsaat.com/vb/f55/
http://www.borsaat.com/vb/f43/
http://www.borsaat.com/vb/f66/
http://www.borsaat.com/vb/f67/
http://www.borsaat.com/vb/f69/
http://www.borsaat.com/vb/f42/
http://www.borsaat.com/vb/f68/
http://www.borsaat.com/vb/f70/
http://www.borsaat.com/vb/f26/
http://www.borsaat.com/vb/
http://www.borsaat.com/vb/f90/
http://65.182.191.43/d/vision.html