On Wednesday 22 March 2006 02:56, Eric Jardim wrote:
> 2006/3/21, Eric Jardim <[EMAIL PROTECTED]>:
> > How do I embed Python script in C++?
>
> C'mon folks...
>
> How do I convert a "PyObject*" to a "QWidget*" returned from a function
> like "PyRun_String()"?

Or you can use sip.wrapinstance and sip.unwrapinstance on the Python side (and 
pass/return the pointer from/to C++ as a long) - also in the sip docs.

Jim

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to