Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8798f5

Browse files
committed
More typos in Lib/turtle.py
1 parent 0fc61cc commit f8798f5

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

Lib/turtle.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
----- turtle.py
3939
4040
This module is an extended reimplementation of turtle.py from the
41-
Python standard distribution up to Python 2.5. (See: http:\\www.python.org)
41+
Python standard distribution up to Python 2.5. (See: http://www.python.org)
4242
4343
It tries to keep the merits of turtle.py and to be (nearly) 100%
4444
compatible with it. This means in the first place to enable the
@@ -54,7 +54,7 @@
5454
5555
- Different turtle shapes, gif-images as turtle shapes, user defined
5656
and user controllable turtle shapes, among them compound
57-
(multicolored) shapes. Turtle shapes can be stgretched and tilted, which
57+
(multicolored) shapes. Turtle shapes can be stretched and tilted, which
5858
makes turtles very versatile geometrical objects.
5959
6060
- Fine control over turtle movement and screen updates via delay(),
@@ -64,7 +64,7 @@
6464
following the early Logo traditions. This reduces the boring work of
6565
typing long sequences of commands, which often occur in a natural way
6666
when kids try to program fancy pictures on their first encounter with
67-
turtle graphcis.
67+
turtle graphics.
6868
6969
- Turtles now have an undo()-method with configurable undo-buffer.
7070
@@ -91,12 +91,12 @@
9191
9292
- If configured appropriately the module reads in docstrings from a docstring
9393
dictionary in some different language, supplied separately and replaces
94-
the english ones by those read in. There is a utility function
95-
write_docstringdict() to write a dictionary with the original (english)
94+
the English ones by those read in. There is a utility function
95+
write_docstringdict() to write a dictionary with the original (English)
9696
docstrings to disc, so it can serve as a template for translations.
9797
9898
Behind the scenes there are some features included with possible
99-
extensionsin in mind. These will be commented and documented elsewhere.
99+
extensions in in mind. These will be commented and documented elsewhere.
100100
101101
"""
102102

@@ -301,7 +301,7 @@ def __repr__(self):
301301

302302
##############################################################################
303303
### From here up to line : Tkinter - Interface for turtle.py ###
304-
### May be replaced by an interface to some different graphcis-toolkit ###
304+
### May be replaced by an interface to some different graphics toolkit ###
305305
##############################################################################
306306

307307
## helper functions for Scrolled Canvas, to forward Canvas-methods
@@ -380,7 +380,7 @@ def __init__(self, master, width=500, height=350,
380380
self._rootwindow.bind('<Configure>', self.onResize)
381381

382382
def reset(self, canvwidth=None, canvheight=None, bg = None):
383-
"""Ajust canvas and scrollbars according to given canvas size."""
383+
"""Adjust canvas and scrollbars according to given canvas size."""
384384
if canvwidth:
385385
self.canvwidth = canvwidth
386386
if canvheight:
@@ -776,7 +776,7 @@ def _rescale(self, xscalefactor, yscalefactor):
776776
self.cv.coords(item, *newcoordlist)
777777

778778
def _resize(self, canvwidth=None, canvheight=None, bg=None):
779-
"""Resize the canvas, the turtles are drawing on. Does
779+
"""Resize the canvas the turtles are drawing on. Does
780780
not alter the drawing window.
781781
"""
782782
# needs amendment
@@ -951,7 +951,7 @@ def __init__(self, cv, mode=_CFG["mode"],
951951
def clear(self):
952952
"""Delete all drawings and all turtles from the TurtleScreen.
953953
954-
Reset empty TurtleScreen to it's initial state: white background,
954+
Reset empty TurtleScreen to its initial state: white background,
955955
no backgroundimage, no eventbindings and tracing on.
956956
957957
No argument.
@@ -1317,7 +1317,7 @@ def onkey(self, fun, key):
13171317
fun -- a function with no arguments
13181318
key -- a string: key (e.g. "a") or key-symbol (e.g. "space")
13191319
1320-
In order ro be able to register key-events, TurtleScreen
1320+
In order to be able to register key-events, TurtleScreen
13211321
must have focus. (See method listen.)
13221322
13231323
Example (for a TurtleScreen instance named screen
@@ -1399,7 +1399,7 @@ def bgpic(self, picname=None):
13991399
self._bgpicname = picname
14001400

14011401
def screensize(self, canvwidth=None, canvheight=None, bg=None):
1402-
"""Resize the canvas, the turtles are drawing on.
1402+
"""Resize the canvas the turtles are drawing on.
14031403
14041404
Optional arguments:
14051405
canvwidth -- positive integer, new width of canvas in pixels
@@ -1692,8 +1692,8 @@ def home(self):
16921692
16931693
No arguments.
16941694
1695-
Move turtle to the origin - coordinates (0,0) and set it's
1696-
heading to it's start-orientation (which depends on mode).
1695+
Move turtle to the origin - coordinates (0,0) and set its
1696+
heading to its start-orientation (which depends on mode).
16971697
16981698
Example (for a Turtle instance named turtle):
16991699
>>> turtle.home()
@@ -2265,7 +2265,7 @@ def pen(self, pen=None, **pendict):
22652265
"outline" : positive number
22662266
"tilt" : number
22672267
2268-
This dicionary can be used as argument for a subsequent
2268+
This dictionary can be used as argument for a subsequent
22692269
pen()-call to restore the former pen-state. Moreover one
22702270
or more of these attributes can be provided as keyword-arguments.
22712271
This can be used to set several pen attributes in one statement.
@@ -2413,7 +2413,7 @@ def _setshape(self, shapeIndex):
24132413
class RawTurtle(TPen, TNavigator):
24142414
"""Animation part of the RawTurtle.
24152415
Puts RawTurtle upon a TurtleScreen and provides tools for
2416-
it's animation.
2416+
its animation.
24172417
"""
24182418
screens = []
24192419

@@ -2458,7 +2458,7 @@ def __init__(self, canvas=None,
24582458
self._update()
24592459

24602460
def reset(self):
2461-
"""Delete the turtle's drawings and restore it's default values.
2461+
"""Delete the turtle's drawings and restore its default values.
24622462
24632463
No argument.
24642464
,
@@ -2748,7 +2748,7 @@ def tiltangle(self):
27482748
27492749
Return the current tilt-angle, i. e. the angle between the
27502750
orientation of the turtleshape and the heading of the turtle
2751-
(it's direction of movement).
2751+
(its direction of movement).
27522752
27532753
Examples (for a Turtle instance named turtle):
27542754
>>> turtle.shape("circle")
@@ -2793,7 +2793,7 @@ def _polytrafo(self, poly):
27932793

27942794
def _drawturtle(self):
27952795
"""Manages the correct rendering of the turtle with respect to
2796-
it's shape, resizemode, strech and tilt etc."""
2796+
its shape, resizemode, strech and tilt etc."""
27972797
screen = self.screen
27982798
shape = screen._shapes[self.turtle.shapeIndex]
27992799
ttype = shape._type
@@ -2847,7 +2847,7 @@ def _drawturtle(self):
28472847
############################## stamp stuff ###############################
28482848

28492849
def stamp(self):
2850-
"""Stamp a copy of the turtleshape onto the canvas and return it's id.
2850+
"""Stamp a copy of the turtleshape onto the canvas and return its id.
28512851
28522852
No argument.
28532853

0 commit comments

Comments
 (0)