[Tutor] Returning the IDLE Shell Window to Prompt

Alan Gauld alan.gauld at btinternet.com
Sun Mar 1 23:53:15 CET 2009


"Wayne Watson" <sierra_mtnview at sbcglobal.net> wrote

> My Tkinter program can crash at this stage, and the shell window is
> locked from text entry, and the GUI displayed. I can kill the window 
> by
> using X in the corner, and responding to a few dialogs. There must
> be another way.

There are lots of ways to kill an errant program. You could use
Task Manager for example. But none of them are clean.

It's one of the perils of running a Tkinter program inside
another Tkinter program (IDLE). That's why its always safer to test
GUI programs, and especially TKinter programs outside of IDLE.
Just double click your file in Windows Explorer (or run it from
a DOS box if you have any print statements, or want to see
the error traces)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/ 




More information about the Tutor mailing list