tkprogressbar: Tk progressbar routines

Description Usage Arguments Details Value Author(s) Examples

Description

These functions provide/control a simulated progressbar widget.

Usage

1
2
3
progressbar_create(parent, col)
progressbar_value(progressbar, value)
progressbar_updatebarcolor(progressbar, col)

Arguments

parent

object of the class tkwin representing the parent widget

progressbar

object of the class tkwin representing the progressbar widget

col

character string specifying progress color

value

numeric scalar specifying progress with value in range [0..100]

Details

Progressbar widgets are created with progressbar_create.

The function progressbar_value sets the percent completion value that allows the widget to reflect the amount of progress that has been made, filling from left to right; that value is displayed as well.

The function progressbar_updatebarcolor changes the color used by the widget to display progress.

Value

The progressbar_create method returns a tkwin object representing the progressbar.

Other methods are invoked for their side-effect.

Author(s)

P. Roebuck [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  ## Not run: 
toplevel <- tktoplevel()
progbar <- progressbar_create(toplevel, "blue")
tkpack(progbar)
for (complete in seq_len(100)) {
    progressbar_value(progbar, complete)
    Sys.sleep(0.1)
}
progressbar_updatebarcolor(progbar, "green")
  
## End(Not run)

tclish documentation built on May 31, 2017, 2:28 a.m.