
The code (2)
def slider(self, parent, variable, low, high, label):
"""make a slider [low,high] tied to variable"""
widget = Scale(parent, orient='horizontal',
from_=low, to=high, # range of slider
# tickmarks on the slider "axis":
tickinterval=(high-low)/5.0,
# the steps of the counter above the slider:
resolution=(high-low)/100.0,
label=label, # label printed above the slider
length=300, # length of slider in pixels
variable=variable) # slider value is tied to variable
widget.pack(side='top')
return widget
def textentry(self, parent, variable, label):
"""make a textentry field tied to variable"""
...


