Aug-26-2017, 06:09 PM
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:
What is going on with this?
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?