Roundup Robot added the comment:
New changeset 15dd9d6cc632 by Serhiy Storchaka in branch '2.7':
Issue #6639: Module-level turtle functions no longer raise TclError after
https://hg.python.org/cpython/rev/15dd9d6cc632
New changeset 1628484c9408 by Serhiy Storchaka in branch '3.4':
Issue #6639:
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Any feedback?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
Here is more complete patch.
--
Added file: http://bugs.python.org/file36531/turtledemo_destroy.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +serhiy.storchaka
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
Lita Cho added the comment:
I can make it worth such that it doesn't raise a Terminator error. This works
great when working with Turtle on the command line. I basically check if the
root exists for all Tk canvas calls.
If it got destroyed, then it just returns. However, if you run the
Changes by Jessica McKellar jesst...@mit.edu:
--
keywords: +needs review
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
Lita Cho added the comment:
So it looks like the bug fix was really simple. I just needed to set
TurtleScreen._RUNNING to True when the screen object tries to get destroyed.
--
Added file: http://bugs.python.org/file35462/turtle_crash.patch
___
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
Lita Cho added the comment:
So I have a patch that fixes the original problem, but doesn't fix the crash
with the tdemo_round_dance.py. However, I was wondering why
TurtleScreen._RUNNING = True in the _destroy method. Can anyone shed some light
on this? Here is the current state of my patch.
Changes by Lita Cho lita@gmail.com:
--
nosy: +Lita.Cho, jesstess
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list
Changes by Lita Cho lita@gmail.com:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list mailing list
Unsubscribe:
Lita Cho added the comment:
I was looking at this more, and from my understanding, the turtle code is
continuing to run even when the TK window is destroyed. Thus the crash.
It looks like the drawing functions are being made on the fly with the
following method:
for methodname in
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Same error occurs when the python -m turtle demo is interrupted by closing the
window. I think the correct fix is to exit when the window is closed, but I
cannot figure out the best way to achieve that. This probably
Changes by Ned Deily n...@acm.org:
--
nosy: +ned.deily -BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I have come across the same bug. To reproduce, run
Demo/turtle/tdemo_round_dance.py and kill the Tk window before the dance
stops.
The mysterious command name .10170160 is simply the generated name for the
canvas
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Anyone with turtle/Tkinter knowledge who can shed some light on this?
--
nosy: +BreamoreBoy
stage: - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
___
Python tracker
New submission from Sridhar Ratnakumar sridh...@activestate.com:
I tried the following turtle program; it was taking some time to
draw .. so I pressed C-c after which I saw the exception traceback.
cat play.py
from turtle import *
def f(length, depth):
if depth == 0:
forward(length)
Changes by Sridhar Ratnakumar sridh...@activestate.com:
--
components: +Tkinter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
22 matches
Mail list logo