Pythonwin IDE keeps crashing after 2nd run

I'm using PythonWin and it seems to keep crashing if I run my wxPython
script once or twice. The behaviour is as follows. Hopefully someone
can clue me in as to what I'm doing wrong if anything.

I load my script and run it. It runs no problem. I then close the
program and edit my script some more and then run it again. This time
the menu works, but the dialogs that I'm creating (including a simple
wxMessageBox 'about' box) do not launch. The program doesn't respond
to cancelling the window but the menus still work. The only way to
close it is to hit the reload button in the IDE. The next time I run
the script the IDE crashes. It closes and then I reload Pythonwin and
run my script fine again (that is, until I edit and re-run again).

Am I doing something wrong here?

That problem comes to the mailing list every few month:

IIRC, the event handlers of wxPython and the IDE (IDLE too) get in
each others way.
I think the suggested solution was that the IDE should not be used to
run the program (editing is ok).

Try running it from a command line.

I'm not sure that this is the best way, but it one that works.

Harald Stürzebecher

···

2005/6/17, Richard Querin <rfquerin@gmail.com>:

I'm using PythonWin and it seems to keep crashing if I run my wxPython
script once or twice. The behaviour is as follows. Hopefully someone
can clue me in as to what I'm doing wrong if anything.