Skip to content

Commit

Permalink
Merge pull request TomSchimansky#1721 from dishb/fix-readme-1
Browse files Browse the repository at this point in the history
README has unnecessary tkinter import
  • Loading branch information
TomSchimansky authored Jun 16, 2023
2 parents abe33f7 + 10d5cd4 commit a0c0da6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ The **official** documentation can be found here:
## Example Program
To test customtkinter you can try this simple example with only a single button:
```python
import tkinter
import customtkinter

customtkinter.set_appearance_mode("System") # Modes: system (default), light, dark
Expand All @@ -70,7 +69,7 @@ def button_function():

# Use CTkButton instead of tkinter Button
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()
```
Expand Down

0 comments on commit a0c0da6

Please sign in to comment.