chnaged complex_example.py and fixed command-variable execution order in CTkSlider

This commit is contained in:
Tom Schimansky
2022-06-15 02:07:51 +02:00
parent d8b5104028
commit fc952294f0
3 changed files with 82 additions and 63 deletions

View File

@ -3,7 +3,7 @@ import customtkinter
app = customtkinter.CTk()
app.geometry("400x800")
app.geometry("400x900")
app.title("CustomTkinter Test")
@ -53,5 +53,10 @@ combobox_1.pack(pady=10, padx=10)
button_7 = customtkinter.CTkButton(master=app, text="Disable/Enable combobox_1", command=lambda: change_state(combobox_1))
button_7.pack(padx=20, pady=(10, 20))
slider_1 = customtkinter.CTkSlider(app)
slider_1.pack(pady=10, padx=10)
button_8 = customtkinter.CTkButton(master=app, text="Disable/Enable slider_1", command=lambda: change_state(slider_1))
button_8.pack(padx=20, pady=(10, 20))
app.mainloop()