Issues with Python Tkinter: Frames within a Canvas?

It looks like you are both packing the window in a canvas and creating a window object. I honestly have never done that but I don't think the packing does any good.

It looks like you are both packing the window in a canvas and creating a window object. I honestly have never done that but I don't think the packing does any good. When you create a widget that is an object in a canvas, it will not expand to fill the canvas.

What you'll need to do is create a binding to the event of the canvas. This event will fire whenever the canvas changes size (and a few other times). You can then resize each frame to fit the width of the canvas.

Since you say you prefer using a single frame where you nest the other rows inside it, that is probably the easiest solution. But again, this single frame won't grow or shrink to fit the canvas, you'll have to do that with a binding. Make sure that you configure the scrollregion of the canvas after adding the frame to the canvas using create_window.

It looks like you're forgetting to do that in the commented-out code, and that would definitely prevent the canvas from scrolling.

Creating the binding to worked. The nested frames now work as expected, thanks. However, the scrolling still doesn't work.

Even if I set the scroll region after populating the frame c, the scrollbars stay greyed out. If I run print canvas. Config('scrollregion'), I get ('scrollregion', 'scrollRegion', 'ScrollRegion', '', ('0', '0', '1', '1')).

It would seem that only the frame's anchor is being counted when running canvas. Bbox('all') – VoteBrian Oct 17 at 1:52 If the code is telling you the scrollregion is 1,1, that's your problem. You just need to figure out why it is 1,1.

Apparently you aren't setting it properly. Either that, or the actual size of the frame in your canvas is, in fact, 1x1 (which, depending on options, can be the default size of a frame). – Bryan Oakley Oct 17 at 3:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions