[Tkinter-discuss] Possible to stack frames with frame transparency? (create widget w/gradient background)

python at bdurham.com python at bdurham.com
Thu Nov 4 17:31:31 CET 2010


Michael,

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

Nice! So each of your top buttons (Project, Search, Autocode, etc) is
actually a custom widget based on a canvas containing 3 images (manually
placed via .create_image) and then manually labeled with text via
.create_text)? And your canvas backgroundcolors are set to the
backgroundcolor of their parent frame? If I understand your technique,
you place everything manually vs. using a layout manager like pack/grid?

I noticed your buttons are not all the same width - do you have custom
width centre images or is there a way to horizontally stretch an image?
(I've looked for this capability without success). 

Thanks for sharing your technique and screenshot. The screenshot really
helped me understand what you're saying.

Cheers,
Malcolm


More information about the Tkinter-discuss mailing list