MCPcopy Create free account
hub / github.com/Akascape/CTkCodeBox / switch_mode

Function switch_mode

theme_example.py:52–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50theme_combobox.set("solarized-light")
51
52def switch_mode():
53 if theme_switch.get():
54 customtkinter.set_appearance_mode("Dark")
55 else:
56 customtkinter.set_appearance_mode("Light")
57
58theme_switch = customtkinter.CTkSwitch(app, text="Dark Mode", command=switch_mode)
59theme_switch.pack(pady=10, expand=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected