diff --git a/Readme.md b/Readme.md index c574dae..5052865 100644 --- a/Readme.md +++ b/Readme.md @@ -13,7 +13,7 @@ but can be customized with a border and round edges. CustomTkinter also supports a light and dark theme, which can either be set manually or get controlled by -the system appearance mode (only macOS). +the system appearance mode. ### Installation @@ -305,7 +305,7 @@ Change appearance mode: ```python customtkinter.set_appearance_mode("Light") customtkinter.set_appearance_mode("Dark") -customtkinter.set_appearance_mode("System") # macOS only +customtkinter.set_appearance_mode("System") print(customtkinter.get_appearance_mode()) ``` diff --git a/examples/complex_example.py b/examples/complex_example.py index 8712fec..919ec83 100644 --- a/examples/complex_example.py +++ b/examples/complex_example.py @@ -138,8 +138,6 @@ class App(tkinter.Tk): corner_radius=8) self.button_5.place(relx=0.66, rely=0.92, anchor=tkinter.CENTER) - - self.progressbar.set(0.65) def button_event(self): diff --git a/examples/simple_example.py b/examples/simple_example.py index 766cb27..087a572 100644 --- a/examples/simple_example.py +++ b/examples/simple_example.py @@ -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") diff --git a/examples/simple_example_images.py b/examples/simple_example_images.py index e6dbe0c..911eec1 100644 --- a/examples/simple_example_images.py +++ b/examples/simple_example_images.py @@ -1,9 +1,9 @@ import tkinter import customtkinter # <- import the CustomTkinter module -#from PIL import Image, ImageTk # <- import PIL for the images +from PIL import Image, ImageTk # <- import PIL for the images -#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")