updated Readme

This commit is contained in:
Tom Schimansky 2021-07-13 11:39:52 +02:00
parent 54ede3a548
commit 37c1a1a2cb
4 changed files with 7 additions and 9 deletions

View File

@ -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())
```

View File

@ -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):

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")

View File

@ -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")