[R-gui] R-wxPython Linux progress!

James Wettenhall wettenhall at wehi.edu.au
Sun Jun 20 15:51:09 CEST 2004


Hi guys,

I'm making very small progress with R-wxPython on Linux, but I 
think my latest progression is quite significant - I can now
load:
library(wxPython)
which initializes a wxPython application and a wxPython frame,
and I can then create wx message boxes from the R command line, 
from e.g.
wxMessageBox("Hello!")

The problem I was having before appears to be a bug in 
wxPythonSrc-2.5.1.5/wxPython/src/helpers.cpp

In the function 
wxPyApp::_BootstrapApp()
the value of argv passed to wxEntryStart was NULL.

A quick and dirty fix which worked for me was:
    //PyObject* sysargv = PySys_GetObject("argv");
    PyObject* sysargv = Py_BuildValue("[s]", "");

All I can do is message boxes so far.  I'm getting some other 
errors, but I should start making more rapid progress now!

Best regards,
James



More information about the R-SIG-GUI mailing list