calling python function from windowproc in win32

Mark Hammond mhammond at
Sat Mar 25 09:30:04 CET 2000

"Gabor Papp" <rod at> wrote in message
news:38DB5CF9.8C2011CC at
> 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...


More information about the Python-list mailing list