summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/turtle.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-29 00:25:51 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-29 00:25:51 (GMT)
commitbffa52f07fc73b3c8eb4b30e30e2417bc406d2ee (patch)
treea5fe735c4e0ca016924636adfe155445f84e6d3b /Lib/lib-tk/turtle.py
parentaf7a302c78258d418eba57bc2f80e4dabd8bbe9a (diff)
downloadcpython-bffa52f07fc73b3c8eb4b30e30e2417bc406d2ee.zip
cpython-bffa52f07fc73b3c8eb4b30e30e2417bc406d2ee.tar.gz
cpython-bffa52f07fc73b3c8eb4b30e30e2417bc406d2ee.tar.bz2
Whitespace normalization (get rid of tabs).
Diffstat (limited to 'Lib/lib-tk/turtle.py')
-rw-r--r--Lib/lib-tk/turtle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py
index d59cd7a..16e5735 100644
--- a/Lib/lib-tk/turtle.py
+++ b/Lib/lib-tk/turtle.py
@@ -199,7 +199,7 @@ class RawPen:
if self._filling:
self._path.append(self._position)
self._draw_turtle()
-
+
def heading(self):
return self._angle
@@ -209,13 +209,13 @@ class RawPen:
def window_width(self):
width = self._canvas.winfo_width()
- if width <= 1: # the window isn't managed by a geometry manager
+ if width <= 1: # the window isn't managed by a geometry manager
width = self._canvas['width']
return width
def window_height(self):
height = self._canvas.winfo_height()
- if height <= 1: # the window isn't managed by a geometry manager
+ if height <= 1: # the window isn't managed by a geometry manager
height = self._canvas['height']
return height
@@ -254,7 +254,7 @@ class RawPen:
if self._filling:
self._path.append(self._position)
if self._drawing:
- if self._tracing:
+ if self._tracing:
dx = float(x1 - x0)
dy = float(y1 - y0)
distance = hypot(dx, dy)