The Scale Widget
Create a “slider” widget representing a numeric value
with the Scale method.
$parent->Scale(options);The standard configuration options that apply to Scale are: -activebackground, -background, -bg, -borderwidth, -bw, -cursor, -font, -foreground, -fg, -highlight-background, -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 =>nLow end of the scale (default is
0).-label =>stringThe string to use as a label for the slider.
-length =>amountThe length of the scale.
-orient =>directionThe orientation of the slider. Values can be either
vertical(default) orhorizontal.-repeatdelay =>millisecondsDetermines the number of milliseconds to hold down an arrow before it auto-repeats. Default is
300.-repeatinterval =>millisecondsDetermines the number of milliseconds between auto-repeats once it is started. Default is
100.-resolution =>valueThe increments that the scale will change by (default is
1).-showvalue =>booleanWhether to show the current value of the slider (default is
1).-sliderlength =>amountThe size of the slider. Default is 25 pixels.
-tickinterval =>nThe number of “ticks” to display for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access