Create a "slider" widget representing a numeric value
with the Scale method.
The standard configuration options that apply to$parent->Scale(options);
Scale are:
-activebackground,
-background,
-bg,
-borderwidth,
-bw,
-cursor,
-font,
-foreground,
-fg,
-highlightbackground,
-highlightcolor,
-highlightthickness,
-relief,
-state,
-takefocus,
and
-width.Other options are:
-bigincrement => amountThe amount to change the slider when using large increments. Default is 0, which means 1/10 of the scale.
-command => callbackPointer to a function that will be called for every incremental change in the slider.
-digits => amountThe number of digits to keep when converting from a number to a string.
-from => n-label => string-length => amount-orient => directionThe orientation of the slider. Values can be
either 'vertical' (default) or 'horizontal'.
-repeatdelay => millisecondsDetermines the number of milliseconds to hold down an arrow before it will auto-repeat. Default is 300.
-repeatinterval => millisecondsDetermines the number of milliseconds between auto-repeats once it is started. Default is 100.
-resolution => value-showvalue => booleanWhether to show the current value of the slider (default = 1).
-sliderlength => amount-tickinterval => nThe number of "ticks" to display for the slider. Default is 0 (no ticks).
-to => n-troughcolor => color-variable => \$variableIn addition to configure and cget, the following
methods are defined for the Scale widget:
getReturns the current value if given no arguments. If given x and y coordinates as the first and second arguments, returns the value of the scale at that position.
setcoordsReturns the x and y coordinates associated with the value given in the first argument.
identifyReturns "slider", "trough1", "trough2", or "", depending on
which part of the scale corresponds to the given x, y coordinates.