From: Guido van Rossum Date: Mon, 1 Jan 2001 19:11:07 +0000 (+0000) Subject: Patch by kragen@pobox.com: When tracing is turned on, lines shorter X-Git-Tag: v2.1a1~464 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a659efe5c75711eab0cca8261254994f6ec44103;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index 4e73f52eab23..dde5725ffb18 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!