[PyKDE] Using SIP to wrap python objects

Phil Thompson phil at riverbankcomputing.co.uk
Fri Jun 13 10:22:01 BST 2003


On Friday 13 June 2003 12:31 am, Rob Knapp wrote:
> I've found myself in a position where I need to present a python object to
> a C++ object, and it needs to look like a C++ object.  The target
> application knows nothing of python.

What C++ object does it need to look like?

> Would it be possible to create an object using SIP that I can inherit from
> and use the SIP api to convert into a CppPointer?

If you have a C++ ctor for the object then that's exactly what SIP does, so 
maybe what you want to do is more complicated than your are implying?

> Is there another/better way to achieve this?

Phil

The address of the PyKDE mailing list has changed.




More information about the PyQt mailing list