Problem with win32ui MessageBox

Alex Martelli aleaxit at yahoo.com
Mon Aug 20 13:00:33 EDT 2001


"Maurizio Manetti" <giannozzo at arca.net> wrote in message
news:3B812A8C.F1A0228E at arca.net...
    ...
> > > import win32con
> > > import win32ui
> > >
> > > win32ui.MessageBox("Test Message", 'Test', win32con.MB_OK)
> > >
> > > When I run it from PythonWin it works as expected.
> > > If I save it on a script ".py" file and launch it (double click,
> > > associated with pythonw) I get the following error:
> >     ...
> > > I found this problem on two different Win machine (Win98 with Python
2.0
> > > and WinMe with Python 2.1.1)
> > >
> > > Does anyone know why? And how to solve the problem?
> >
> > Works fine for me on NT4 with Python 2.1.1.  I don't see any
> > obvious reason why it should fail so horribly, either.
>
> Yes, you are right, it's just a call to a windows API, but that's what
> happen to me.
> I also tried to reinstall pythonwin, but nothing changes.

Now confirmed -- I also get a horrible crash when running this
in Windows 98, at home.  Still no idea of what could possibly
cause it, but it's definitely a Win95/95/ME vs NT/2000 issue.


Alex






More information about the Python-list mailing list