[Gwidgets-questions] Problems with loading a workspace with gWidgets objects inside
Dmitri E
dmitrie at ymail.com
Mon Mar 11 14:16:32 CET 2013
Hi,
I'm trying to understand how I can save and load gWidgets objects. When I create a gWidgets object, save a workspace and then load it back, I get an error trying to access it:
require (gWidgets)
options (guiToolkit="RGtk2")
window <- gwindow()
svalue(window) <- "Test 1"
print(svalue(window))
save.image("saved.RData")
load("saved.RData")
svalue(window) <- "Test 2"
print(svalue(window))
Error I get: (rsession.exe:5180): Gtk-CRITICAL **: gtk_window_set_title: assertion `GTK_IS_WINDOW (window)' failed
Seems that load() function doesn't recreate the gWidgets object properly. How can I fix it? Is there any other way to save the current GUI with all entered values and then load it back?
Thanks!
Dmitri
More information about the Gwidgets-questions
mailing list