Book HomeMastering Perl/TkSearch this book

10.11. Getting the Value of a Scale

The get method returns 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);


Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.