Determining Coordinates
The
coords
method returns a list containing x and y
coordinates:
($x, $y) = $scale->coords( );
The coordinates indicate the position in which the current value is located in the Scale. You can also pass in a value to locate:
($x, $y) = $scale->coords(value
);
Get Mastering 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.