summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/turtle.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-01 19:11:07 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-01 19:11:07 (GMT)
commita659efe5c75711eab0cca8261254994f6ec44103 (patch)
tree0b2e2ee34d29d7526dd69d08d590b2078e5b564f /Lib/lib-tk/turtle.py
parent8e2b6b5cc7c2141fb49b49e60a3e27815836730c (diff)
downloadcpython-a659efe5c75711eab0cca8261254994f6ec44103.zip
cpython-a659efe5c75711eab0cca8261254994f6ec44103.tar.gz
cpython-a659efe5c75711eab0cca8261254994f6ec44103.tar.bz2
Patch by kragen@pobox.com: When tracing is turned on, lines shorter
than a pixel don't get drawn at all. If you're building long curves made of such lines, this is a bad thing.
Diffstat (limited to 'Lib/lib-tk/turtle.py')
-rw-r--r--Lib/lib-tk/turtle.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py
index 4e73f52..dde5725 100644
--- a/Lib/lib-tk/turtle.py
+++ b/Lib/lib-tk/turtle.py
@@ -221,6 +221,8 @@ class RawPen:
self._canvas.coords(item, x0, y0, x, y)
self._canvas.update()
self._canvas.after(10)
+ # in case nhops==0
+ self._canvas.coords(item, x0, y0, x1, y1)
self._canvas.itemconfigure(item, arrow="none")
except Tkinter.TclError:
# Probably the window was closed!