Skip to content

AppearanceMode

Tom Schimansky edited this page Dec 2, 2022 · 2 revisions

Appearance Mode

The appearance mode decides, which color will be picked from tuple colors, if the color is specified as a tuple color. You can set the appearance mode at any time with the following command:

import customtkinter

customtkinter.set_appearance_mode("system")  # default value
customtkinter.set_appearance_mode("dark")
customtkinter.set_appearance_mode("light")

If you set the appearance mode to "system", the current mode is read from the operating system. It will also adapt if the appearance mode of the operating system changes during the runtime of the program. Note that on Linux it will be always in "light" mode if set to "system", because the mode can't get read from the operating system at the moment, this will probably be implemented in the future.

⚠️ Attention ⚠️

The Github Wiki is outdated, the new documentation can be found at:

https://customtkinter.tomschimansky.com

Clone this wiki locally