Closed RedFantom closed 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.
You're right! Thank you for pointing that out, @Akuli .
As shown in the image, the commits in this branch fix the usage of the
background
kwarg (renaming it tothemebg
to avoid confusion with the defaultbackground
kwarg ofTk
). In addition, the commits implement modified versions of theconfig
,configure
andcget
functions to set and retrieve options. The custom options ofThemedTk
can be set upon initialization, unlike the other options ofTk
, but now also during run-time.