Scale Methods

In addition to configure and cget, the following methods are defined for the Scale widget:

get

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

set

Assigns the value associated with the scale.

coords

Returns the x and y coordinates associated with the value given in the first argument.

identify

Returns "slider", "trough1", "trough2", or "", depending on which part of the scale corresponds to the given x, y coordinates.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.