Skip to content Skip to sidebar Skip to footer

Using Grid_propagate(false) In Tkinter

I am creating a Frame that uses the grid manager. And I have a Label widgets in it. I want the label widget to fill to the frame that it is in. But instead the frame resizes itself

Solution 1:

You are calling grid_propagate but then using pack() to put widgets in it. Try doing

self.frame.pack_propagate(False)

Post a Comment for "Using Grid_propagate(false) In Tkinter"