Description Usage Arguments Details Value Author(s) Examples
These functions provide/control a simulated progressbar widget.
1 2 3 | progressbar_create(parent, col)
progressbar_value(progressbar, value)
progressbar_updatebarcolor(progressbar, col)
|
parent |
object of the class |
progressbar |
object of the class |
col |
character string specifying progress color |
value |
numeric scalar specifying progress with value in range [0..100] |
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.
The progressbar_create
method returns a tkwin
object
representing the progressbar.
Other methods are invoked for their side-effect.
P. Roebuck proebuck@mdanderson.org
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.