Malcom,

> New to Tkinter: Is it possible to stack frames on top of one another and if
> so, can frames have transparency?

Unless things have changed in recent releases of Tcl/Tk,
what you are tring to do is not possible.

Frames cannot be transparent.

Frames cannot usually be stacked on top of each other.
As you suggest, this might be done via placing them in a canvas,
using the create_window method. But each frame on top
of another totally obscures those below.

To see what can be done, look at my tkinter-based interface,
at: http://www.wagsoft.com/CorpusTool/img/main.jpg

The button "Search" is a canvas totally filled with 3 images
left, centre and right parts of the button. On top of that I then
use create-text to write "Search". I then write it 2 pixels above/left
in a different color to create an embossed look.

Mick



> My goal is to create widgets with gradient backgrounds. I was hoping I could
> do this by placing an image in a frame and then placing an identical sized
> frame over this image frame. This on-top frame would contain all my child
> widgets.
>
> Details: Is it possible to place a frame on top of an image background? From
> my reading, the only way to do this appears to be to use a Canvas as my
> container (vs. a Frame). The downside to using a canvas appears to be that
> Labels do not have transparent backgrounds so any text I place in such a
> (canvas based) container must be placed with Canvas.create_text() vs. laid
> out via one of the pack/grid/place layout managers. Am I understanding this
> right?
>
> Thank you,
> Malcolm
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to