>Ironically ctypes doesn't provide the necessary C API to do this. However if 
>(in Python) you can get the address of the real data structure as a number 
>(ctypes.addressof() ?) then you can create a sip.voidptr from it and I can 
>add the ctors to accept that.

Well, ctypes.addressof is intended to "Return the address of the C instance 
internal buffer",
is this what you need? If yes, can you please implement it in PyQt as you said?
I can do some tests for you if you want, but this is all I can do, I don't know 
anything about sip.

I would be really happy if this support for passing already opened display, 
visual and colormap
to QApplication will be supported in PyQt, not only in Qt. Thank you really 
much for your help.

Michal Krenek (Mikos)

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to