root.resizable(0, 0) or, technically, root.resizable(False, False) (width allowed to be resized?, height allowed to be resized?) after your geometry statement. Just be careful, in general, about controlling the size of things too much what with differing font sizes and stuff on different systems.

On Jun 12, 2009, at 11:34, GKalman wrote:


How to "lock" top window size with 2 different Frames on it ?
I would like to "freeze" the size of the top window, so it can't be changed
with the mouse

for example:
#==============================================
from Tkinter import *

root=Tk()
root.geometry("300x100+10+10")

f1=Frame(root,bg="red", width=100,height=100)
f1.pack(side=LEFT, expand=0)

f2=Frame(root,bg="blue",width=200, height=100)
f2.pack(side=LEFT, expand=0)

root.mainloop()

--
View this message in context: 
http://www.nabble.com/locking-window-size--tp24003215p24003215.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss


_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to