TkinterEP / ttkthemes

A group of themes for the ttk extenstions for Tkinter
GNU General Public License v3.0
364 stars 47 forks source link

Merge themebg into master to fix background option #58

Closed RedFantom closed 5 years ago

RedFantom commented 5 years ago

equilux_themebg As shown in the image, the commits in this branch fix the usage of the background kwarg (renaming it to themebg to avoid confusion with the default background kwarg of Tk). In addition, the commits implement modified versions of the config, configure and cget functions to set and retrieve options. The custom options of ThemedTk can be set upon initialization, unlike the other options of Tk, but now also during run-time.

Akuli commented 5 years ago

Does your config and cget stuff work with tkinter's widget['option'] syntax? I think I have tried to add my own options to widgets, and I also needed to override __setitem__ and __getitem__ to make it work. It might be easier to add the option with Tk instead of tkinter, if that's possible.

RedFantom commented 5 years ago

You're right! Thank you for pointing that out, @Akuli .