Message91248
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)
else:
f(length/3, depth-1)
right(60)
f(length/3, depth-1)
left(120)
f(length/3, depth-1)
right(60)
f(length/3, depth-1)
f(500, 4)
> python play.py
Traceback (most recent call last):
File "/Users/sridharr/as/pypm/bin/python", line 41, in <module>
execfile(sys.argv[0])
File "play.py", line 15, in <module>
f(500, 4)
File "play.py", line 11, in f
f(length/3, depth-1)
File "play.py", line 7, in f
f(length/3, depth-1)
File "play.py", line 9, in f
f(length/3, depth-1)
File "play.py", line 10, in f
left(120)
File "<string>", line 1, in left
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
lib-tk/turtle.py", line 1612, in left
self._rotate(angle)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
lib-tk/turtle.py", line 3107, in _rotate
self._update()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
lib-tk/turtle.py", line 2562, in _update
self._update_data()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
lib-tk/turtle.py", line 2553, in _update_data
self._pencolor, self._pensize)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
lib-tk/turtle.py", line 569, in _drawline
self.cv.coords(lineitem, *cl)
File "<string>", line 1, in coords
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
lib-tk/Tkinter.py", line 2136, in coords
self.tk.call((self._w, 'coords') + args)))
_tkinter.TclError: invalid command name ".10170160"
> |
|
Date |
User |
Action |
Args |
2009-08-04 00:09:25 | srid | set | recipients:
+ srid |
2009-08-04 00:09:25 | srid | set | messageid: <1249344565.24.0.634557720335.issue6639@psf.upfronthosting.co.za> |
2009-08-04 00:09:24 | srid | link | issue6639 messages |
2009-08-04 00:09:23 | srid | create | |
|