Scale properties setting in constructor : Scale « Tkinker « Python Tutorial






Scale properties setting in constructor
from Tkinter import *
root = Tk()
scl = Scale(root, from_=-100, to=100, tickinterval=50, resolution=10)
scl.pack(expand=YES, fill=Y)
def report(): print scl.get()
Button(root, text='state', command=report).pack(side=RIGHT)
root.mainloop()








18.27.Scale
18.27.1.Scale with variableScale with variable
18.27.2.Get scale value
18.27.3.Label, Button, and Scale DemoLabel, Button, and Scale Demo
18.27.4.Scale used to control the size of a circle.Scale used to control the size of a circle.
18.27.5.Scale WidgetsScale Widgets
18.27.6.Show current value of ScaleShow current value of Scale
18.27.7.Scale properties setting in constructorScale properties setting in constructor