]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch by kragen@pobox.com: When tracing is turned on, lines shorter
authorGuido van Rossum <guido@python.org>
Mon, 1 Jan 2001 19:11:07 +0000 (19:11 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Jan 2001 19:11:07 +0000 (19:11 +0000)
than a pixel don't get drawn at all. If you're building long curves
made of such lines, this is a bad thing.

Lib/lib-tk/turtle.py

index 4e73f52eab233a07f2c837b2bd83e2fa450284be..dde5725ffb188a9f6e60d3b3a37f82371bfc9277 100644 (file)
@@ -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!