beetlebug▾
/

ttk::scale coords

Gives the pixel point of the center of the slider for a value.

PATHNAME coords ?VALUE?

Description

Gives the x and y in the widget of the center of the slider for VALUE, or for the current value with no VALUE. The widget must be on the screen for a useful result.

Returns

A list of two integers.

Examples

% ttk::scale .tscco -from 0 -to 10 -length 200
> pack .tscco
> update
> lassign [.tscco coords 0] x0
> lassign [.tscco coords 10] x1
> expr {$x1 > $x0}
1

Errors

% ttk::scale .tscco2; .tscco2 coords x
expected floating-point number but got "x"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also