Description Usage Arguments Value Note See Also Examples
This device will become the current one if the mouse clicks in the window, This isn't perfect, but should be easy enough to get used to. This only works with gWidgetsRGtk2, gWidgetsQt
1 2 |
value |
ingored |
name |
Required name for object. Names should be unique within a group of items |
label |
Optional label, default value is the name |
help |
Optional help string |
tooltip |
Optional tooltip to display |
attr |
A list of attributes to pass to widget on construction. Eg. attr=list(size=c(100,200)). |
model |
ignored |
editor |
ignored |
... |
Passed to parent proto object during call to proto |
A proto
object. Call obj$show_help()
to view its methods and properties.
With gWidgetsRGtk2, there is some thing odd that causes a display to pop up before the cairo Device if no devices are open.
1 2 3 4 5 6 7 8 | graphIt <- function(n, ...) hist(rnorm(n))
dlg <- aDialog(items=list(n=integerItem(10), out=graphicDeviceItem()),
model_value_changed=function(.) do.call("graphIt", .$to_R()) ## ... allows out to pass in unnoticed
)
## Not run: dlg$make_gui()
graphIt(dlg$get_n()) ## initial graphic
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.