wierd win32all gui problem (w/56lines of code)
Jeffrey Drake
jpt.d at home.com
Thu Oct 25 10:46:17 EDT 2001
It worked great, thank you.
For anyone else interested lines changed:
InitApplication:
modify: global hinst, cAtom
modify: cAtom = RegisterClass(wc)
modify: if not cAtom:
InitInstance:
hWnd = CreateWindowEx(
win32con.WS_EX_APPWINDOW,
cAtom,
"Thomas Heller" <thomas.heller at ion-tof.com> wrote in message
news:9r8thu$s1k0a$1 at ID-59885.news.dfncis.de...
>
> "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