I would recommend to organize your configration settings as a Python dictionary, e.g. = }{
Finally, you can traverse the dictionary and apply configurations to each eleement, e.g do something like this:
default_style = { 'btn': {'activebackground': "#ff8040", 'activeforeground': "#000000"' }, 'text': {'font': 'xxx'}, 'other element': {a dict} }dark_theme can be based on default style;
Finally, you can traverse the dictionary and apply configurations to each eleement, e.g do something like this:
def apply_conf(self, conf): for k, v in conf.items(): if hasattr(self, k): getattr(self, k).configure(**v)