[PyKDE] PyQt/Win32/ HWND

Phil Thompson phil at river-bank.demon.co.uk
Mon Feb 25 18:19:40 GMT 2002


Joe Cotellese wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> 
> I'm a fairly new user of PyQT and I have a question concering PyQT under
> Microsoft Windows. I have a Python extension DLL that makes a Win32 call
> that requires a window handle. I understand that I can use the Qt winId
> function to obtain the parent window handle. I've done that but am unclear
> on how to get the value returned by winId (a PyCObject) into my extension
> DLL. Can anyone give me any pointers?

PyCObjects are designed to allow void * values to be passed between
C/C++ extension modules - so one would hope that your other extension
DLL would accept a PyCObject. If it doesn't, what type of object is it
expecting?

Phil




More information about the PyQt mailing list