Skip to content
Prev 312522 / 398506 Next

How to add widgets of gWidgets to widgets of rgtk2 ???

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.