How to stop Tkinter Frame from shrinking to fit its contents?
This is the code that's giving me trouble. f = Frame(root, width=1000, bg="blue") f.pack(fill=X, expand=True) l = Label(f, text="hi", width=10, bg="red", fg="white") l.pack() If I comment out the lines with the Label, the Frame displays with the right width. However, adding the Label seems to shrink the Frame down to the Label's size. Is there a way to prevent that from happening? By default, tk frames shrink or grow to fit their contents , which is what you want 99% of the time. The term that describes this feature is "geometry propagation". There is a command to turn geometry propagation on