jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
613 stars 68 forks source link

Background Image For Widgets #368

Open alabecki opened 6 years ago

alabecki commented 6 years ago

(First off - thank you for making this wonderful library - it makes GUI construction so easy!)

I have been making a multi-tab application and would like to have background images, but it seems like they do not work within tabbed frames.

In general, it would be great to be able to place texture images in the background of any and all widgets, as plain colours are a bit drab.

I am thinking it might be possible to accomplish this using the new Canvas widget - but it looks like the widgets added on top of a canvas using canvas.create_window(), but the Widgets added in that manner need to be defined as Ttk elements and, since almost everything is in the tabbed, it would make more sense just to use Tkinter for everything.

jarvisteach commented 6 years ago

Interesting, yes it should be possible to configure all containers (including tabs) in the same way the topLevel is configured - appJar's not quite there with this feature, although it's on its way.

But, background images don't generally look very good, as the grid layout stretches widgets out, and labels, etc don't have transparent backgrounds...

The canvas widget has just been introduced, it does present a solution, to having better background images, but is going to require a bunch of work, before it does this well. It will become a container option - which can then have widgets gridded in it, as well as the regular canvas options, but that's also not done yet.