468,512 Members | 1,660 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Pythonwin crashes

Does anyone else have a problem with Pythonwin crashing after running a
python script with graphics libraries? Whenever I use Pythonwin to run
a PyGame or PyOgre script, Pythonwin crashes when the script exits.

I know it's probably because the Pythonwin interpreter can't read from
the console once the graphics mode has been changed, but has anyone
discovered a workaround? I'd like to know if this problem is specific
to my machine, or if others have witnessed this.

Thanks
Tim

Sep 28 '05 #1
2 2223
accolades wrote:
Does anyone else have a problem with Pythonwin crashing after running a
python script with graphics libraries? Whenever I use Pythonwin to run
a PyGame or PyOgre script, Pythonwin crashes when the script exits.

I know it's probably because the Pythonwin interpreter can't read from
the console once the graphics mode has been changed, but has anyone
discovered a workaround? I'd like to know if this problem is specific
to my machine, or if others have witnessed this.

Thanks
Tim


I think it's pretty much universal. Pythonwin crashes when you run
programs with Tk in them.

--
--------------------------
Lucas Raab
lvraab"@"earthlink.net
dotpyFE"@"gmail.com
AIM: Phoenix11890
MSN: dotpyfe "@" gmail.com
IRC: lvraab
ICQ: 324767918
Yahoo: Phoenix11890
Sep 29 '05 #2
Lucas Raab wrote:
accolades wrote:
Does anyone else have a problem with Pythonwin crashing after running a
python script with graphics libraries? Whenever I use Pythonwin to run
a PyGame or PyOgre script, Pythonwin crashes when the script exits.

I know it's probably because the Pythonwin interpreter can't read from
the console once the graphics mode has been changed, but has anyone
discovered a workaround? I'd like to know if this problem is specific
to my machine, or if others have witnessed this.

Thanks
Tim

I think it's pretty much universal. Pythonwin crashes when you run
programs with Tk in them.


The problem is that PythonWin uses MFC-based windowing, and runs
programs as a part of the same process that the IDE itself runs in.

This means that there are conflicting requirements for windowing, and
this can lead to PythonWin getting confused enough to crash and die.

To avoid this you need a development system that uses a remote debugging
technique - WingIDE, for example, can successfully debug programs based
on Tkinter, wxPython and other graphical toolkits, because the programs
it runs are run as separate processes.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org

Sep 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Martin Bless | last post: by
reply views Thread by PaulG | last post: by
14 posts views Thread by Jive | last post: by
3 posts views Thread by archaegeo | last post: by
1 post views Thread by goldtech | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.