You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
969 B

From: aa8vb at (Randall Hopper)
Date: Wed, 14 Apr 1999 12:30:18 GMT
Subject: IDLE with Tk app
Message-ID: <>
X-UID: 197
1) A first test
>>> from Tkinter import *
>>> button = Button( None, text="Testing" )
>>> button.pack()
>>> button.mainloop()
Works fine, so I close the button's window (click X - WM_DELETE event),
but IDLE is still stuck in button.mainloop().
The same test in the raw python interpreter causes it to return to the
2) I try to exit (File->Exit)
"The program is still running; do you want to kill it?"
I click OK.
(and we're still in the interpreter with the program running.)
Try again, same result. So I kill the IDLE window.
Anything I'm doing wrong here?
I'd guess this is related to IDLE also being a Tk app. Is there a
work-around so Tk apps can be run as-is in IDLE?