wierd win32all gui problem (w/56lines of code)

Thomas Heller thomas.heller at ion-tof.com
Thu Oct 25 07:37:33 EDT 2001


"Neil Hodgson" <nhodgson at bigpond.net.au> wrote in message news:XLRB7.225335$bY5.977767 at news-server.bigpond.net.au...
> Jeffrey Drake:
> > Using ActivePython 2.1 and win32all I have written a simple app that
> creates
> > a window and exits when closed. However the python interpreter is still
> > running. It hangs a command prompt under win2k until I physically kill the
> > python process. I would appreciate any help possible.
>
>    The WndProc isn't called at all. Add some prints or message boxes in the
> code and you'll see the WndProc is ignored.
>
>    Neil
>
IIRC you have to pass the return value of the RegisterClass() call (which
is an atom) to the CreateWindowEx() function as the second parameter (lpClassName).

Thomas





More information about the Python-list mailing list