mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
changed root_tk name to app in all exmaples and tests
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import customtkinter
|
||||
import tkinter
|
||||
|
||||
customtkinter.set_appearance_mode("dark")
|
||||
customtkinter.set_default_color_theme("blue")
|
||||
@ -22,8 +21,8 @@ def button_click_event():
|
||||
|
||||
|
||||
button = customtkinter.CTkButton(app, text="Open Dialog", command=button_click_event)
|
||||
button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
|
||||
button.place(relx=0.5, rely=0.5, anchor=customtkinter.CENTER)
|
||||
c1 = customtkinter.CTkCheckBox(app, text="dark mode", command=change_mode)
|
||||
c1.place(relx=0.5, rely=0.8, anchor=tkinter.CENTER)
|
||||
c1.place(relx=0.5, rely=0.8, anchor=customtkinter.CENTER)
|
||||
|
||||
app.mainloop()
|
||||
app.mainloop()
|
||||
|
Reference in New Issue
Block a user