Skip to content

Commit

Permalink
Update advanced_example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Akascape authored Jun 4, 2023
1 parent 3c96ced commit 694005b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/advanced_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def add_slider(num, node):
def update(e):
node.update()
label.configure(text=f"{node.text}: {round(e,2)}")


for i in sliders.values():
i.pack_forget()

sliders[num] = customtkinter.CTkSlider(frame_right, from_=0, to=10, command=lambda e: update(e))
sliders[num].pack(expand=True, fill="x", padx=20, pady=5, side="bottom")
sliders[num].set(1)
Expand Down

0 comments on commit 694005b

Please sign in to comment.