TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
10.77k stars 1.03k forks source link

i cant change theme in option menu #2465

Open NasserMashpery opened 3 weeks ago

NasserMashpery commented 3 weeks ago

i need update for option menu to change theme backgrounde

dipeshSam commented 3 weeks ago

By default, customtkinter allows only one theme at a time.

If you want to give multiple options to the user, create separate json files and then set them as theme using the following function:

customtkinter.set_default_color_theme("dark-blue")

Although, this might be built in and @TomSchimansky should look into this issue.

Helpful links:

  1. Themes: https://customtkinter.tomschimansky.com/documentation/color

  2. Packing with themes: https://customtkinter.tomschimansky.com/documentation/packaging

Regards.