[R] How to add widgets of gWidgets to widgets of rgtk2 ???

jverzaniNWBKZ jverzani at gmail.com
Fri Nov 30 20:55:33 CET 2012


For this it would be best to insert an intermediate group container, as its
add method allows you to add the RGtk2 widgets. Something like:

library(gWidgets)
options(guiToolkit="RGtk2")
library(RGtk2)

w <- gwindow()
lyt <- glayout(cont=w)
lyt[1,1] <- (g <- ggroup(cont=lyt))

widget <- gtkButton("click me")
add(g, widget)


Otherwise you can get the underlying GtkTable widget with:
getToolkitWidget(lyt)



--
View this message in context: http://r.789695.n4.nabble.com/How-to-add-widgets-of-gWidgets-to-widgets-of-rgtk2-tp4651396p4651491.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list