[Tutor] First steps with Tkinter

Michael Lange klappnase at freenet.de
Thu Jan 26 20:50:01 CET 2006

On Thu, 26 Jan 2006 18:20:48 +0000
etrade.griffiths at dsl.pipex.com wrote:

> root.mainloop()
> I am running from inside Pythonwin 2.4 IDE under XP Pro and every time I run 
> hello2.py it freezes when I press "QUIT".  The only way to kill it is through 
> Alt-Ctrl-Del but this crashes Pythonwin.  Any workaround for this so that I 
> can use Tkinter from inside the IDE?  BTW the same thing happend with IDLE


when running Tkinter apps from IDLE or Pythonwin, you need to comment out the call to mainloop() .
This is because the IDE itself runs a Tkinter mainloop() and two of these cannot coexist in one process.

I hope this helps


More information about the Tutor mailing list