mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
updated Readme
This commit is contained in:
parent
54ede3a548
commit
37c1a1a2cb
@ -13,7 +13,7 @@ but can be customized with a border and round edges.
|
|||||||
|
|
||||||
CustomTkinter also supports a light and dark theme,
|
CustomTkinter also supports a light and dark theme,
|
||||||
which can either be set manually or get controlled by
|
which can either be set manually or get controlled by
|
||||||
the system appearance mode (only macOS).
|
the system appearance mode.
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ Change appearance mode:
|
|||||||
```python
|
```python
|
||||||
customtkinter.set_appearance_mode("Light")
|
customtkinter.set_appearance_mode("Light")
|
||||||
customtkinter.set_appearance_mode("Dark")
|
customtkinter.set_appearance_mode("Dark")
|
||||||
customtkinter.set_appearance_mode("System") # macOS only
|
customtkinter.set_appearance_mode("System")
|
||||||
|
|
||||||
print(customtkinter.get_appearance_mode())
|
print(customtkinter.get_appearance_mode())
|
||||||
```
|
```
|
||||||
|
@ -138,8 +138,6 @@ class App(tkinter.Tk):
|
|||||||
corner_radius=8)
|
corner_radius=8)
|
||||||
self.button_5.place(relx=0.66, rely=0.92, anchor=tkinter.CENTER)
|
self.button_5.place(relx=0.66, rely=0.92, anchor=tkinter.CENTER)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.progressbar.set(0.65)
|
self.progressbar.set(0.65)
|
||||||
|
|
||||||
def button_event(self):
|
def button_event(self):
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import tkinter
|
import tkinter
|
||||||
import customtkinter # <- import the CustomTkinter module
|
import customtkinter # <- import the CustomTkinter module
|
||||||
|
|
||||||
#customtkinter.enable_macos_darkmode()
|
customtkinter.enable_macos_darkmode()
|
||||||
#customtkinter.set_appearance_mode("System") # Other: "Dark", "Light"
|
customtkinter.set_appearance_mode("System") # Other: "Dark", "Light"
|
||||||
|
|
||||||
root_tk = tkinter.Tk() # create the Tk window like you normally do
|
root_tk = tkinter.Tk() # create the Tk window like you normally do
|
||||||
root_tk.geometry("400x240")
|
root_tk.geometry("400x240")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import tkinter
|
import tkinter
|
||||||
import customtkinter # <- import the CustomTkinter module
|
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.enable_macos_darkmode()
|
||||||
#customtkinter.set_appearance_mode("System") # Other: "Dark", "Light"
|
customtkinter.set_appearance_mode("System") # Other: "Dark", "Light"
|
||||||
|
|
||||||
root_tk = tkinter.Tk() # create the Tk window like you normally do
|
root_tk = tkinter.Tk() # create the Tk window like you normally do
|
||||||
root_tk.geometry("400x240")
|
root_tk.geometry("400x240")
|
||||||
|
Loading…
Reference in New Issue
Block a user