Problem with win32ui MessageBox

Maurizio Manetti giannozzo at arca.net
Mon Aug 20 11:13:57 EDT 2001


Alex Martelli wrote:
> 
> "Maurizio Manetti" <maurizio.manetti at arca.net> wrote in message
> news:3B80ED4F.F37FA70 at arca.net...
> > I have the following dummy script:
> >
> > 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.



More information about the Python-list mailing list