beetlebug▾
/

ttk::progressbar start

Starts a timer that calls step at each interval.

PATHNAME start ?INTERVAL? ?AMOUNT?

Description

Calls step AMOUNT every INTERVAL milliseconds until stop. The default INTERVAL is 50, and the default AMOUNT is 1. The timer is an after timer, so it runs only while the event loop runs. Use it with the mode indeterminate for a task of unknown length.

Returns

An empty string.

Examples

% ttk::progressbar .tpbsa -mode indeterminate
> .tpbsa start 10
> after 100 {set ::tpbdone 1}
> vwait ::tpbdone
> .tpbsa stop
> expr {[.tpbsa cget -value] > 0}
1

Errors

% ttk::progressbar .tpbsa2; .tpbsa2 start x
bad argument "x": must be cancel, idle, info, or an integer
-errorcode NONE

Facts

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

See also