Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_scales_aka_sliders.py
- from Tkinter import *
- def show_values():
- print (w1.get(), w2.get())
- master = Tk()
- w1 = Scale(master, from_=0, to=100, tickinterval=25)
- w1.set(30)
- w1.pack()
- w2 = Scale(master, from_=0, to=200, length=600, tickinterval=10, orient=HORIZONTAL)
- w2.set(50)
- w2.pack()
- Button(master, text='Show', command=show_values).pack()
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement