Python Forum

Full Version: tkinter frame sizing problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working on a project with tkinter, and I am trying to make a frame and a ScrolledText widget fill up the screen.
The relevant code looks like this:
opBar = Frame(win)
opBar.pack(fill=BOTH, padx=5, pady=5, side=BOTTOM)
text = ScrolledText.ScrolledText(win)
text.pack(fill=X, padx=5, pady=5)
The problem I am having is that there is a gap between these two widgets. The frame contains a button, and I can't get the frame height to be any larger than the button height. I am trying to use the fill option in pack to fix this- it works just fine with fill=X, changing the frame's width to go across the whole screen. However, it did not have the same effect on the height.
What is going on with this?