calling python function from windowproc in win32

Mark Hammond mhammond at skippinet.com.au
Sat Mar 25 09:30:04 CET 2000


"Gabor Papp" <rod at inf.bme.hu> wrote in message
news:38DB5CF9.8C2011CC at inf.bme.hu...
> I suspect some thread problems.

I suspect you are correct.

The WndProc will need to acquire the thread-lock before calling into
Python.  The bad news is this is tricky.  The good news is that there
is code in the win32 extensions you can steal - pywintypes.h has a
CEnterLeavePython class that does everything you need...

Mark.





More information about the Python-list mailing list