gprogressbar {gWidgets2} | R Documentation |
Basic progress bar widget
Description
Basic progress bar widget
S3 generic whose methods are implemented in the toolkit packages
Usage
gprogressbar(value = 10, container = NULL, ..., toolkit = guiToolkit())
.gprogressbar(toolkit, value, container, ...)
Arguments
value |
Initial value, between 0 and 100. A value of |
container |
A parent container. When a widget is created it can be incorporated into the widget heirarchy by passing in a parent container at construction time. (For some toolkits this is not optional, e.g. gWidgets2tcltk or gWidgets2WWW2.) |
... |
These values are passed to the |
toolkit |
Each widget constructor is passed in the toolkit it
will use. This is typically done using the default, which will
lookup the toolkit through |
Value
a GButton
instance. While this object has its own
(reference) methods, one primarily interacts with it through S3
methods defined within the package.
Examples
## Not run:
w <- gwindow("progress bar example")
pb <- gprogressbar(cont=w)
for(i in 10:100) {Sys.sleep(.1); svalue(pb) <- i}
## End(Not run)