summaryrefslogtreecommitdiffstats
path: root/Doc/library/turtle.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-03 21:18:54 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-03 21:18:54 (GMT)
commit48310cd3f2e02ced9ae836ccbcb67e9af3097d62 (patch)
tree04c86b387c11bfd4835a320e76bbb2ee24626e0d /Doc/library/turtle.rst
parent3d3558a4653fcfcbdcbb75bda5d61e93c48f4d51 (diff)
downloadcpython-48310cd3f2e02ced9ae836ccbcb67e9af3097d62.zip
cpython-48310cd3f2e02ced9ae836ccbcb67e9af3097d62.tar.gz
cpython-48310cd3f2e02ced9ae836ccbcb67e9af3097d62.tar.bz2
Remove trailing whitespace.
Diffstat (limited to 'Doc/library/turtle.rst')
-rw-r--r--Doc/library/turtle.rst60
1 files changed, 30 insertions, 30 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
index 64df742..0a7acea 100644
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -1563,7 +1563,7 @@ The public classes of the module :mod:`turtle`
Subclass of TurtleScreen, with :ref:`four methods added <screenspecific>`.
-
+
.. class:: ScrolledCavas(master)
:param master: some Tkinter widget to contain the ScrolledCanvas, i.e.
@@ -1588,13 +1588,13 @@ The public classes of the module :mod:`turtle`
"compound" ``None`` (a compund shape has to be constructed using the
:meth:`addcomponent` method)
=========== ===========
-
+
.. method:: addcomponent(poly, fill, outline=None)
:param poly: a polygon, i.e. a tuple of pairs of numbers
:param fill: a color the *poly* will be filled with
:param outline: a color for the poly's outline (if given)
-
+
Example:
>>> poly = ((0,0),(10,-5),(0,10),(-10,-5))
@@ -1638,31 +1638,31 @@ facilities:
>>> help(Screen.bgcolor)
Help on method bgcolor in module turtle:
-
+
bgcolor(self, *args) unbound turtle.Screen method
Set or return backgroundcolor of the TurtleScreen.
-
+
Arguments (if given): a color string or three numbers
in the range 0..colormode or a 3-tuple of such numbers.
-
-
+
+
>>> screen.bgcolor("orange")
>>> screen.bgcolor()
"orange"
>>> screen.bgcolor(0.5,0,0.5)
>>> screen.bgcolor()
"#800080"
-
+
>>> help(Turtle.penup)
Help on method penup in module turtle:
-
+
penup(self) unbound turtle.Turtle method
Pull the pen up -- no drawing when moving.
-
+
Aliases: penup | pu | up
-
+
No argument
-
+
>>> turtle.penup()
- The docstrings of the functions which are derived from methods have a modified
@@ -1670,32 +1670,32 @@ facilities:
>>> help(bgcolor)
Help on function bgcolor in module turtle:
-
+
bgcolor(*args)
Set or return backgroundcolor of the TurtleScreen.
-
+
Arguments (if given): a color string or three numbers
in the range 0..colormode or a 3-tuple of such numbers.
-
+
Example::
-
+
>>> bgcolor("orange")
>>> bgcolor()
"orange"
>>> bgcolor(0.5,0,0.5)
>>> bgcolor()
"#800080"
-
+
>>> help(penup)
Help on function penup in module turtle:
-
+
penup()
Pull the pen up -- no drawing when moving.
-
+
Aliases: penup | pu | up
-
+
No argument
-
+
Example:
>>> penup()
@@ -1871,19 +1871,19 @@ Have fun!
Changes since Python 2.6
========================
-- The methods :meth:`Turtle.tracer`, :meth:`Turtle.window_width` and
- :meth:`Turtle.window_height` have been eliminated.
- Methods with these names and functionality are now available only
+- The methods :meth:`Turtle.tracer`, :meth:`Turtle.window_width` and
+ :meth:`Turtle.window_height` have been eliminated.
+ Methods with these names and functionality are now available only
as methods of :class:`Screen`. The functions derived from these remain
- available. (In fact already in Python 2.6 these methods were merely
- duplications of the corresponding
+ available. (In fact already in Python 2.6 these methods were merely
+ duplications of the corresponding
:class:`TurtleScreen`/:class:`Screen`-methods.)
-- The method :meth:`Turtle.fill` has been eliminated.
- The behaviour of :meth:`begin_fill` and :meth:`end_fill`
- have changed slightly: now every filling-process must be completed with an
+- The method :meth:`Turtle.fill` has been eliminated.
+ The behaviour of :meth:`begin_fill` and :meth:`end_fill`
+ have changed slightly: now every filling-process must be completed with an
``end_fill()`` call.
-
+
- A method :meth:`Turtle.filling` has been added. It returns a boolean
value: ``True`` if a filling process is under way, ``False`` otherwise.
This behaviour corresponds to a ``fill()`` call without arguments in