Get scale value : Scale : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Scale »

 

Get scale value


from Tkinter import *

def sel():
    label.config(text = scale.get())

root = Tk()
var = DoubleVar()
scale = Scale(root)
button = Button(root, text="Get Scale Value", command=sel)
label = Label(root)

scale.pack(anchor=CENTER)
button.pack(anchor=CENTER)
label.pack()
root.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Scale