Advanced Perl Programming

Advanced Perl ProgrammingSearch this book
Previous: A.6 Scrollbars and ScrollingAppendix A
Tk Widget Reference
Next: A.8 HList - Hierarchical List

A.7 Scale

Table A.13: Scale Methods and Properties




Specifies a reference to a Perl subroutine, which is called when the scale's value is changed.


Reference to a variable to be updated whenever the slider moves. Conversely, if you want the slider to move, you can change the variable.

width, length

Specifies the width and the length of the scale in pixels. Note that it doesn't support a property called height.


Horizontal or vertical.

from, to

Real numbers.


If greater than 0, the value displayed and returned is always in even multiples of this value. Defaults to 1.


Spacing between numerical tick marks. If 0, no tick marks are displayed.

label, font

A label to be displayed on the top or the left of the slider (depending on orientation).



Same as updating the variable to the given value.

Previous: A.6 Scrollbars and ScrollingAdvanced Perl ProgrammingNext: A.8 HList - Hierarchical List
A.6 Scrollbars and ScrollingBook IndexA.8 HList - Hierarchical List