added darkdetect Windows and Linux support

This commit is contained in:
Tom Schimansky
2021-07-13 11:23:34 +02:00
parent 96462ea600
commit 54ede3a548
5 changed files with 24 additions and 27 deletions

View File

@ -1,8 +1,8 @@
import tkinter
import customtkinter # <- import the CustomTkinter module
customtkinter.enable_macos_darkmode()
customtkinter.set_appearance_mode("System") # Other: "Dark", "Light"
#customtkinter.enable_macos_darkmode()
#customtkinter.set_appearance_mode("System") # Other: "Dark", "Light"
root_tk = tkinter.Tk() # create the Tk window like you normally do
root_tk.geometry("400x240")