IDLE and Pythonwin Keep Crashing
newsreply at jtwok.worldonline.co.uk
Wed Feb 19 20:15:12 CET 2003
I ran into a similar problem trying to run a PyOpenGL program from within
pythonwin, so I wrote this script which can be run from the Pythonwin tools
menu to execute programs in an external process.
Put the attached script in site-packages\Pythonwin\pywin\framework and add
these commands to your Pythonwin options->tools menu:
Run Externally: from pywin.framework import
runextern; runextern.run_c ()
Run Externally (no console): from pywin.framework import runextern;
Debug in IDLE: from pywin.framework import
runextern; runextern.debug ()
<sismex01 at hebmex.com> wrote in message
news:mailman.1045673635.27112.python-list at python.org...
> > 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.
begin 666 runextern.py
M*"DZ#0H@(" @9FEL92 ]('-C<FEP='5T:6QS+D=E=$%C=&EV949I;&5.86UE
M("@I#0H@(" @;W,N<W!A=VYL("AO<RY07TY/5T%)5"P at 4%E42$].+"!0651(
M3TXL(&9I;&4I#0H-"F1E9B!R=6Y?=R H*3H-"B @("!F:6QE(#T@<V-R:7!T
M+E!?3D]704E4+"!0651(3TY7+"!0651(3TY7+"!F:6QE*0T*#0ID968 at 9&5B
M=6<@*"DZ#0H@(" @9FEL92 ]('-C<FEP='5T:6QS+D=E=$%C=&EV949I;&5.
M86UE("@I#0H@(" @;W,N<W!A=VYL("AO<RY07TY/5T%)5"P at 4%E42$].5RP@
More information about the Python-list