scale get
Gives the value of the scale, or the value at a point.
PATHNAME get ?X Y?
Description
With no argument, gives the current value, rounded by -resolution and -digits. With X and Y, gives the value at that point of the trough, in pixels from the corner of the scale.
Returns
A number.
Examples
% scale .ge -to 100
> .ge set 30
> .ge get
30
% scale .ge2 -orient horizontal
> pack .ge2
> update
> .ge2 get {*}[.ge2 coords 40]
40
Errors
% scale .ge3; .ge3 get x
wrong # args: should be ".ge3 get ?x y?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1