[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

Lita Cho report at bugs.python.org
Mon Jun 2 23:43:50 CEST 2014


Lita Cho added the comment:

Oops, pressed submit too soon.

Now the programs raise a Terminator exception rather than a TclError, which I think is correct because the programs are calling Turtle methods when the TurtleScreen had been destroyed. 

I wasn't sure if it was better to return None rather than raise an exception, but I think raising exception is correct, as these programs are not calling mainloop to handle event loops. So when the user closes the window, round_dance.py should handle that.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6639>
_______________________________________


More information about the Python-bugs-list mailing list