Howdy,<br><br>While making a small program using python 2.4.4, I have run into a problem getting the python shell to stop running the program. I am not certain of what the problem could be and i'm wondering if there's a way that I can avoid encountering this problem in the future. The details are below.
<br><br>I can run the program (I normally use F5) without any problems, once; however, when I try to run it again (with or without new changes made to the code), I get an error window that states &quot;Already Executing: The Python Shell window is already executing a command; please wait until it is finished.&quot; This window appears twice (back to back) then this is printed out in the shell window:
<br><br>________________________________________________________________<br>Exception in Tkinter callback<br>Traceback (most recent call last):<br>&nbsp; File &quot;C:\Python24\lib\lib-tk\Tkinter.py&quot;, line 1345, in __call__
<br>&nbsp;&nbsp;&nbsp; return self.func(*args)<br>&nbsp; File &quot;C:\Python24\lib\idlelib\ScriptBinding.py&quot;, line 166, in run_module_event<br>&nbsp;&nbsp;&nbsp; interp.runcode(code)<br>&nbsp; File &quot;C:\Python24\lib\idlelib\PyShell.py&quot;, line 697, in runcode
<br>&nbsp;&nbsp;&nbsp; self.interp.restart_subprocess()<br>AttributeError: ModifiedInterpreter instance has no attribute 'interp'<br>_________________________________________________________________<br><br><br><br>Just in case you need it, here's the code that im using that causes this:
<br><br>###############################################<br>from Tkinter import * <br>root = Tk()<br><br>listbox = Listbox(root)<br>listbox.pack()<br><br>name_list = ('name1', 'name2', 'name3', 'name4')<br><br>for item in name_list:
<br>&nbsp;&nbsp;&nbsp; listbox.insert(END, item)<br><br>print name_list<br><br>root.mainloop()<br>#################################################<br><br><br>Am I missing something? I am using windows xp media center and the file is save as .pyw. I cant think of any other information that you might need. If you do need more, please let me know and i'll provide it.
<br><br>Thanks for any assitance that you can provide.<br><br>Greg<br>