Aug-06-2021, 07:48 PM
(This post was last modified: Aug-06-2021, 07:48 PM by mandiatutti.)
(Aug-06-2021, 07:28 PM)deanhystad Wrote: I am trying to understand if this is a "I don't know how to make tkinter resize to fit the window" or "I don't know how to make the canvas resize my frame" problem.
It's a I'm a newbie problem xD No, seriously, I started coding using a multi page framweork i found online... But only later i discovered frames are not resizable. So now I'm addressing the problem. I have a class ScrollableFrame which uses the "canvas" trick to make a frame scrollable. It's a class so that it is reusable. So now basically I can instantiate a ScrollableFrame (which i need it in the SampleApp Class). I also used a container (a frame which i coloured red) which wraps the Scrollable frame. So now In the for loop I Instantiate all the pages I have created as classes. But if you run the code you can see that the Scrollable Frame doesn't expand to fit its container. That is the problem. This result in the fact that if i resize the container, the Scrollable Frame doesnt resize.
In short: I cant't manage to make the ScrollableFrame to fill all the space it can