我正在编写一个小型数据库界面并想使用 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 )
})
该功能似乎存在,但我收到错误(或者是警告?)消息
(R:14953): Gtk-CRITICAL **: IA__gtk_table_attach: assertion `child->parent == NULL' failed
我用 rseek(什么都没有)和谷歌(没有什么与我的具体问题相关)寻找解决方案。任何想法我可以做些什么来摆脱这些消息?或者我可以放心地忽略它们吗?
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