It’d be awesome if I could get something like the below.
Pseudo Code:
U = widget1.SettingsGet()
Print U
Upon printing U something like this would be returned:
widget1(background='green',foreground='grey',boarderwidth=10, relief='flat')
It would be really useful to be able to get a widgets settings. So that I can manipulate other widgets accordingly.
If you know what settings you need, you can just use the
cgetmethod to get values e.g.It will print
If you want to know all the available options, widget.config contains the config and from that if you wish you can create all or a subset of settings which you may need e.g.
Output: