beetlebug▾
/

ttk::scale set

Sets the value of the scale and runs its command.

PATHNAME set VALUE

Description

Sets the value to VALUE, kept between -from and -to, and runs -command with the value appended. A scale with the flag disabled makes no change.

Returns

An empty string.

Examples

% ttk::scale .tscse -from 0 -to 100
> .tscse set 250
> .tscse get
100.0

Errors

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

% ttk::scale .tscse3; .tscse3 set
wrong # args: should be ".tscse3 set value"
-errorcode NONE

Facts

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

See also