[Python-bugs-list] [ python-Bugs-428555 ] IDLE crashes when running Tkinter code

noreply@sourceforge.net noreply@sourceforge.net
Tue, 07 Aug 2001 12:19:57 -0700


Bugs item #428555, was opened at 2001-05-29 23:07
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428555&group_id=5470

>Category: IDLE
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Guido van Rossum (gvanrossum)
>Summary: IDLE crashes when running Tkinter code

Initial Comment:
On Windows 2000 (havent tested other platforms) IDLE 
will crash if i run the following code (ditto for 
PythonWin)

from Tkinter import *

root = Tk()
img = PhotoImage(root,file="somefile.gif")
# the error here is that i used root as the name





----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-07 12:19

Message:
Logged In: YES 
user_id=6380

Sorry, it's best not to use IDLE to run Tkinter code.

I'm closing this bug report with a "won't fix". It will
actually eventually be fixed, but the fix is far in the
future.

This is in fact not platform specific.


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2001-05-31 19:58

Message:
Logged In: NO 

I get the same problem. Idle locks up when I close the 
window created by this application. 

I'm using Python 2.1 on Win98SE with IDLE 0.8 and Tcl 8.3

Happens every time for me. I can't get IDLE back to the >>> 
prompt when I close the window.

HELP!
----
from Tkinter import *

def testwindow(mess):
    root = Tk()

    w = Label(root, text="[ %s ]" % mess)
    w.pack()

    root.mainloop()

testwindow("Hello World")
----

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428555&group_id=5470