logo       

SWIG/non-SWIG python modules: msg#00098

programming.swig

Subject: SWIG/non-SWIG python modules

I'm using several python modules. One is my own library wrapped with SWIG.
The other is a python extension moduled wrapped by other means. (pyGTK ), and I
need to pass a python object from the one extension module into my own SWIG
module. (specifically, I'm trying to pass a GtkWidget * into my SWIG wrapped
library. ) SWIG doesn't know about the types in the other module, so it's
always expecting a _p_GtkWidget, rather than what it actually is. I tried
writing a typemap to convert it using PCObject_AsVoidPtr, but it didn't work.
Is there a way to do this? Should I try manually decoded it from the string
representation?

Thanks,
Jon
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise