Skip to content

Commit

Permalink
🛠️ [fix] small mistake in the README example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dishant B authored Jun 15, 2023
1 parent abe33f7 commit 10d5cd4
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 10d5cd4

Please sign in to comment.