Python crashes when running TKinter

910 views
Skip to first unread message

Reinhard Oldenburg

unread,
Feb 17, 2010, 8:27:43 AM2/17/10
to spyder
I'm new to this group and first I'd like to say that Spyder is a great
IDE especially for education.

However, there is a problen with using TK based programs.

I use Spyder 1.0.3 on Python 2.6 on Vista. Many Tkinter progra,ms
crash the python interpreter. The simples way to provoke the error ist
to use turtle graphics, i.e. in the Python console simply do:

>>> from turtle import *
>>> forward(100)

Python crashes as sonn as you move the turtle window, i.e. as asoon as
a window event is triggered.

Any help on this?

Reinhard


Pierre Raybaut

unread,
Feb 17, 2010, 4:36:09 PM2/17/10
to spyder

Hi,

Thanks for the feedback.
Please try again with the external console: open an interpreter in it,
and experiment the same things with the turtle window.

-Pierre

Reinhard Oldenburg

unread,
Feb 18, 2010, 9:11:35 AM2/18/10
to spyder
Ok, using an external interpreter everything works as expected. Still
I don't understand what is going on: As spyder is a QT program, it
shuld not interfer with Tkinter. Morover, I'm not sure about what are
the disadvantages of using an external interpreter.
Reinhard

Pierre Raybaut

unread,
Mar 6, 2010, 4:28:40 AM3/6/10
to spyder
Actually PyQt's event loop interfers with Tkinter's (as it would
interfer with wxPython's or GTK's, ...).

The interactive console allows to embed easily PyQt windows in
Spyder's GUI layout (e.g. dockable matplotlib figures) and has some
exclusive interactive features (matplotlib's interactive mode won't
work in the external console).
Apart from that, the external console is indeed very interesting for a
lot of reasons (separate process, ...).

Cheers,
-Pierre

Pierre Raybaut

unread,
Mar 6, 2010, 4:44:52 AM3/6/10
to spyder
Edit:
matplotlib's interactive mode does not work in the external console on
*Windows only*
Reply all
Reply to author
Forward
0 new messages