[R-gui] R-wxPython Linux progress!

Dirk Eddelbuettel edd at debian.org
Sun Jun 20 16:35:25 CEST 2004


James,

On Sun, Jun 20, 2004 at 11:51:09PM +1000, James Wettenhall wrote:
> 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!

Very, very nice. 

I'd love to help but am quite tied up. I also saw Vaidotas email regarding
some success on Debian. Keep it coming, hopefully I'll have some more time
to help with tests at some point.

Dirk

-- 
FEATURE:  VW Beetle license plate in California



More information about the R-SIG-GUI mailing list