mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
readme fix
This commit is contained in:
parent
b953464038
commit
06332a1061
@ -38,7 +38,6 @@ The **official** documentation can be found in the Wiki Tab here:
|
|||||||
## Example Program
|
## Example Program
|
||||||
To test customtkinter you can try this simple example with only a single button:
|
To test customtkinter you can try this simple example with only a single button:
|
||||||
```python
|
```python
|
||||||
import tkinter
|
|
||||||
import customtkinter
|
import customtkinter
|
||||||
|
|
||||||
customtkinter.set_appearance_mode("System") # Modes: system (default), light, dark
|
customtkinter.set_appearance_mode("System") # Modes: system (default), light, dark
|
||||||
@ -52,7 +51,7 @@ def button_function():
|
|||||||
|
|
||||||
# Use CTkButton instead of tkinter Button
|
# Use CTkButton instead of tkinter Button
|
||||||
button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function)
|
button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function)
|
||||||
button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
|
button.place(relx=0.5, rely=0.5, anchor=customtkinter.CENTER)
|
||||||
|
|
||||||
app.mainloop()
|
app.mainloop()
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user