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.
This commit is contained in:
Guido van Rossum 2001-01-01 19:11:07 +00:00
parent 8e2b6b5cc7
commit a659efe5c7
1 changed files with 2 additions and 0 deletions

View 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!