I want to make three scale slider in tkinter in Python, where I can move the slider of first two and the third slider moves itself as the sum of the values of first two sliders
I tried with the following code where I try to set the value of first two to the third.
from tkinter import *
master = Tk()
#First Scale
w1=Scale(master, from_=0, to=100,orient=HORIZONTAL)
w1.pack()
#Second Scale
w2=Scale(master, from_=0, to=200,orient=HORIZONTAL)
w2.pack()
#Third Scale where sum has to be shown
w3=Scale(master, from_=0, to=300,orient=HORIZONTAL)
w3.set(w1.get()+w2.get())
w3.pack()
mainloop()
The expectation is to move the first two sliders and the third slider moves itself to the value which is sum of the values of first two sliders.