How to reset the scale bar in Tkinter Python

421 Views Asked by At

I have created a scale bar in tkinter GUI. I want to reset the scale bar when I click the button

def Reset():
    Spd.set(0)

rad1 = Scale(self, orient=HORIZONTAL, resolution=1, length=550, width=15, variable=Spd, sliderlength=10, from_=0, to=max(Spd_BP), tickinterval=30, font=('Helvetica', 10, 'bold'), command= SpdData)
rad1.grid(row=2, column=3, sticky=tk.W)

tk.Button(self, padx=18, bd=7, font=('Helvetica', 13, 'bold'), width=7, command=Reset, text="Reset",
                  bg="#F18F49").grid(row=18, column=2, pady=12)

Code still not working

0

There are 0 best solutions below