10.11. Getting the Value of a Scale
The get method will return the current value of the scale:
$value = $scale->get( );
You can also specify x and y coordinates and retrieve the value of the scale at that point:
$value = $scale->get(x, y);
Get Learning Perl/Tk 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.