diff Lib/lib-tk/turtle.py @ 15681:3ca702caa61a legacy-trunk

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.
author Guido van Rossum <guido@python.org>
date Mon, 01 Jan 2001 19:11:07 +0000
parents 847ae40074d4
children c238745e0aae
line wrap: on
line diff
--- a/Lib/lib-tk/turtle.py	Sun Dec 31 22:52:59 2000 +0000
+++ b/Lib/lib-tk/turtle.py	Mon Jan 01 19:11:07 2001 +0000
@@ -221,6 +221,8 @@
                         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!