| Store | Cart

Exiting Tkinter when using IDLE

From: Jason Harper <Jaso...@pobox.com>
Thu, 11 Mar 2004 15:15:58 -0700
You have two issues here:

1. Don't use the quit method, instead just close your window.  Your QUIT
button could perhaps use:
	command=self.destroy

2. Don't call mainloop() if IDLE already has one running.  Try this:

import sys
if "idlelib" not in sys.modules:
	root.mainloop()

	Jason Harper

Recent Messages in this Thread
Jason Harper Mar 11, 2004 10:15 pm
Gerrit Muller Mar 12, 2004 07:14 am
Jason Harper Mar 12, 2004 07:21 pm
Kurt B. Kaiser Mar 13, 2004 07:16 am
Eugene Van den Bulke Mar 12, 2004 08:00 pm
Jason Harper Mar 12, 2004 09:25 pm
Messages in this thread