# L-32 MCS 260 Fri 1 Apr 2016 : showscale.py

"""
Illustration of the widget Scale.
"""

from tkinter import Tk, Scale, DoubleVar
TOP = Tk()
TOP.title('the widget Scale')
LOW = 0.0          # lowest value
HIGH = 1.0         # highest value
VAR = DoubleVar()  # variable to scale
SCL = Scale(TOP, orient='horizontal', \
    from_=LOW, to=HIGH,\
    tickinterval=(HIGH-LOW)/5.0, \
    resolution=(HIGH-LOW)/100.0, \
    length=300, variable=VAR)
SCL.set(0.5)       # initialize VAR to 0.5
SCL.pack()
TOP.mainloop()
