Problem with win32ui MessageBox

Maurizio Manetti maurizio.manetti at
Mon Aug 20 12:58:23 CEST 2001

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:

Pythonw has caused an error in Kernel32

I get a similar error if I launch it with "python" instead of "pythonw"
If I try twice more time everything crashes and I have to reboot the
computer to make something work!

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?

Thank you in advance.

More information about the Python-list mailing list