wx.MessageDialog

Thanks for responding Robin,

Unfortunately, I didn't notice the problem was caused by accidentally
calling the Dialog inside of a loop. I feel kind of foolish :wink:

In any event, thanks for replying...

Keith

robin@alldunn.com 08/23/04 03:54:58 PM >>>

Keith Bolton wrote:

It fails on this line:

dlg.ShowModal()

File C:\Python23\Lib\site-packages\wx\windows.py", line 449 in
ShowModal return _windows.Dialog_ShowModal (*args, **kwargs)
return _windows.Dialog_ShowModal(*args, **kwargs)
x.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in
..\..\src\msw\msgdlg.cpp
expected ::MessageBox() return code

It's confusing because this doesn't happen every time. Have any

ideas

on this?

Something is causing the native MessageBox API function to return an
unexpected value. Do you do anything different when dismissing the
dialog when the exception is raised? Can you duplicate it in a small
sample app?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org