From 10d5cd4c2a123d0f24d85eb46b1b8cd08a7f4391 Mon Sep 17 00:00:00 2001 From: Dishant B <130259005+dishb@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:07:18 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20[fix]=20small=20mistake?= =?UTF-8?q?=20in=20the=20README=20example=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 52bde70..73535b8 100644 --- a/Readme.md +++ b/Readme.md @@ -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 @@ -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() ```