diff options
Diffstat (limited to 'lib-python/3/turtle.py')
-rw-r--r-- | lib-python/3/turtle.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib-python/3/turtle.py b/lib-python/3/turtle.py index ac0c32cf21..c6ebfa5c6d 100644 --- a/lib-python/3/turtle.py +++ b/lib-python/3/turtle.py @@ -108,7 +108,6 @@ import tkinter as TK import types import math import time -import os import inspect from os.path import isfile, split, join @@ -857,8 +856,8 @@ class TurtleScreenBase(object): class Terminator (Exception): """Will be raised in TurtleScreen.update, if _RUNNING becomes False. - Thus stops execution of turtle graphics script. Main purpose: use in - in the Demo-Viewer turtle.Demo.py. + This stops execution of a turtle graphics script. + Main purpose: use in the Demo-Viewer turtle.Demo.py. """ pass @@ -1279,7 +1278,7 @@ class TurtleScreen(TurtleScreenBase): self._delayvalue = int(delay) def _incrementudc(self): - """Increment upadate counter.""" + """Increment update counter.""" if not TurtleScreen._RUNNING: TurtleScreen._RUNNNING = True raise Terminator @@ -2528,7 +2527,7 @@ class RawTurtle(TPen, TNavigator): self.screen = TurtleScreen(canvas) RawTurtle.screens.append(self.screen) else: - raise TurtleGraphicsError("bad cavas argument %s" % canvas) + raise TurtleGraphicsError("bad canvas argument %s" % canvas) screen = self.screen TNavigator.__init__(self, screen.mode()) @@ -2773,7 +2772,7 @@ class RawTurtle(TPen, TNavigator): def shapesize(self, stretch_wid=None, stretch_len=None, outline=None): """Set/return turtle's stretchfactors/outline. Set resizemode to "user". - Optinonal arguments: + Optional arguments: stretch_wid : positive number stretch_len : positive number outline : positive number @@ -3136,7 +3135,7 @@ class RawTurtle(TPen, TNavigator): def _goto(self, end): """Move the pen to the point end, thereby drawing a line - if pen is down. All other methodes for turtle movement depend + if pen is down. All other methods for turtle movement depend on this one. """ ## Version with undo-stuff |