A Scale is the widget that user could select a numerical value from the range of values by moving a slider knob along the scale.
You could specify the minimum and maximum values and also the resolution of the scale. The scale provides a bounded numerical value compared to a Entry widget.
Tkinter Scale Example
scaleExample = tk.Scale(app, from_=0, to=10)
from_ specifies the minimum value, and
to specifies the maximum value of the range.
Tkinter Scale Orientation and Resolution
scaleExample = tk.Scale(app, orient='horizontal', resolution=0.1, from_=0, to=10)
The default orientation of Tkinter scale is vertical as shown in the first example. You need to specify the
orient attribute of
scale to be
horizontal to get a horizontal Tkinter scale.
The resolution of the scale could be modified by
resolution option that has the default value of