IDLE and Pythonwin Keep Crashing

sismex01 at hebmex.com sismex01 at hebmex.com
Wed Feb 19 11:48:55 EST 2003


> From: Luke McCarthy [mailto:luke at ukonline.co.uk]
> Sent: Wednesday, February 19, 2003 10:40 AM
> 
> When I run a program that uses wxPython from within IDLE or 
> Pythonwin, after I have closed the program and go back to the
> editor, pressing the backspace key crashes the editor.
> I thought it strange that it happens to both editors
> in exactly the same way.
> 
> Any ideas? Is this a known bug?
> 
> Luke McCarthy
> luke at ukonline.co.uk
>

Different GUI libraries shouldn't mix, else something
like what you describe happens.  It isn't the backspace
key which is triggering the crash, but when you run
a wxWindows app from within Idle or PyWin, the process
is left in an unstable state, so anything might make
it die.

The solution would be to run your app from without
your preferred editor environment, so that it'll
run in a different process space.  Another solution
would be to use an IDE which runs applications
in another process, and not within it's own
(both methods have it's pros and cons).

Is there a wxWindows-based IDE you might be able
to use?

Another is to keep a shortcut to your app on the
desktop and click it when you want to run it,
instead of using the editor's <run> facility.

Hope this helps.

-gustavo





More information about the Python-list mailing list