I'm writing a small database interface and want to use glayout. MWE:
require(gWidgets)
options("guiToolkit"="RGtk2")
### The bowl
win <- gwindow( "Fruits")
gui <- glayout( container = win )
### Fruit salad
gui[1,1] <- glabel( "Apple", cont = gui )
gui[1,2] <- gbutton( "Change", cont = gui )
nav1 <- function( gui )
{
svalue( gui[1,1] ) <- "Banana"
}
addHandlerClicked( gui[1,2], handler = function( h, ... )
{
nav1( gui )
})
The functionality seems to be there but I get an error (or is it a warning?) message
(R:14953): Gtk-CRITICAL **: IA__gtk_table_attach: assertion `child->parent == NULL' failed
I looked for solutions with rseek (nothing) and Google (nothing that I could relate to my specific problem). Any ideas what I could do to get rid of the messages? Or can I safely ignore them?
sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-pc-linux-gnu (64-bit)
...
other attached packages:
[1] gWidgetsRGtk2_0.0-81