Message-ID: <1354305333180-4651491.post@n4.nabble.com>
Date: 2012-11-30T19:55:33Z
From: j verzani
Subject: How to add widgets of gWidgets to widgets of rgtk2 ???
In-Reply-To: <1354260537399-4651396.post@n4.nabble.com>
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.