[R-gui] Post hoc tweeking of ggenericwidget?
j verzani
jverzani at gmail.com
Fri Dec 2 21:55:52 CET 2011
christiaan pauw <cjpauw <at> gmail.com> writes:
>
> Hi Everybody
>
> ggenericwidet in the gWidgets package is really handy - you can get a
> basic gui for your function in just about no time. Now I just want to
> tweek it a little bit. For example: I want to use gvarbrowser to
> select x . Can this type of object be manipulated after the initial
> creation or must be all be done when it is created? If
>
The idea behind this widget is there are two steps: one to create
a list specifying how to layout the dialog and the other to make the
dialog. If you want to modify the object, you modify the list, not the
dialog. The list can be obtained two ways. See either:
cat(gWidgets:::autogenerategeneric(mean))
or
svalue(ggenericwidget(mean))
The whole thing is pretty limited and you'll bump into its walls
if you try too much, but it can make basic dialogs very simple.
The gformlayout adds a bit more functionality for mapping a list
into a dialog, but has nothing to autogenerate the list.
--John
> Thanks in advance
> Christiaan
>
> > sessionInfo()
> R version 2.14.0 (2011-10-31)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] splines stats graphics grDevices utils datasets
> methods base
>
> other attached packages:
> [1] cjp_1.1 Hmisc_3.9-0 survival_2.36-10
> RGtk2_2.20.19 gWidgetsRGtk2_0.0-77 traitr_0.12
> [7] gWidgets_0.0-47 proto_0.3-9.2 digest_0.5.1
>
> loaded via a namespace (and not attached):
> [1] cluster_1.14.1 grid_2.14.0 lattice_0.20-0 tools_2.14.0
>
More information about the R-SIG-GUI
mailing list