Is there a slider widget in TKinter libraries ?
I need a slider to set a specific value
Is there a slider widget in TKinter libraries ?
I need a slider to set a specific value
See the effbot docs:
from Tkinter import *
master = Tk()
def vscale_cb(value):
print('vertical: {v}'.format(v=value))
def hscale_cb(value):
print('horizontal: {v}'.format(v=value))
w = Scale(master, from_=0, to=100, command=vscale_cb)
w.pack()
w = Scale(master, from_=0, to=200, orient=HORIZONTAL, command=hscale_cb)
w.pack()
mainloop()