Two subsequent message loops

Hi all,

I'm trying to use wxpython embedded in C++ to pop up windows. This works fine
for the first time, but any subsequent calls to MainLoop cause my application
to crash. Is there any way to do this, i.e. start a message loop, let the user
end it by closing a window, the doing something else, and subsequently starting
another message loop, all in one python script?

Thanks for help.

Libor Vasa

Libor Vasa wrote:

Hi all,

I'm trying to use wxpython embedded in C++ to pop up windows. This works fine
for the first time, but any subsequent calls to MainLoop cause my application
to crash. Is there any way to do this, i.e. start a message loop, let the user
end it by closing a window, the doing something else, and subsequently starting
another message loop, all in one python script?

Do you create a new wx.App for the subsequent invocations? What platform are you on? Does your app do anything with the GUI outside of wxPython?

ยทยทยท

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