No, there is no way to stretch an image to fill the container. However, you can detect when a widget changes size and you can "repaint" the gradient. Use a canvas, and create a binding to Configure that draws the gradient.It sounds slow but it's plenty fast enough assuming you don't have hundreds of these.
No, there is no way to stretch an image to fill the container. However, you can detect when a widget changes size and you can "repaint" the gradient. Use a canvas, and create a binding to that draws the gradient.It sounds slow but it's plenty fast enough assuming you don't have hundreds of these.
Clever! If I do this, can I take my collection of colored lines (as a tagged group?) and move them to another canvas or can I move my canvas (with colored lines) to another container so that I can re-use my gradient background effect? My confusion lies with how canvases and frames work together, eg. Can I place a (transparent) frame on top of a canvas and/or can I place a canvas behind an existing frame?(Or must I use create_window for these?) – Malcolm Nov 3 '10 at 15:02 1 @Malcolm: yes, draw each line of the gradient.
You can use a canvas in place of a frame (versus placing a transparent frame over the canvas, which isn't possible). – Bryan Oakley Nov 3 '10 at 15:21 Thanks for your patience - I've never used the Tkinter Canvas before although I've read the effbot documentation on this widget many times today :) When you say I can use a canvas in place of a frame, does this mean I can grid/pack/place my child widgets into a canvas vs. frame using the exact same grid/pack/place syntax and behavior? Would it be fair to say that a Canvas is like an enhanced Frame whose background I can draw shapes and images on?
If this is all true, then why would I use create_window() vs. the conventional grid/pack/layout to place my child widgets? Thank you Bryan! – Malcolm Nov 3 '10 at 15:35.
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.