customtkinter.set_default_color_theme by event #449
-
|
Is there is a way how to change color theme in the mainloop? I will appreciate all suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
@smokeflypaper Unfortunately, we can't change the whole theme in the mainloop. You can only switch between the light/dark attributes of one theme file at a time. See this discussion for more details: #295 What you can do is to write the code that saves the theme name in a config file whenever the user change the theme options and then ask them to restart the program so that the new theme gets imported. |
Beta Was this translation helpful? Give feedback.
@smokeflypaper Unfortunately, we can't change the whole theme in the mainloop.
You can only switch between the light/dark attributes of one theme file at a time.
See this discussion for more details: #295
What you can do is to write the code that saves the theme name in a config file whenever the user change the theme options and then ask them to restart the program so that the new theme gets imported.