home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


A.7 Scale


Table A.13: Scale Methods and Properties

Properties

Description

command

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

variable

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.

orient

Horizontal or vertical.

from, to

Real numbers.

resolution

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

tickinterval

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).

Methods

set(value)

Same as updating the variable to the given value.