summaryrefslogtreecommitdiffstats
path: root/Doc/library/turtle.rst
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-10-02 04:16:31 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-10-02 04:16:31 (GMT)
commit6e978d275424f9488d1378ed1421dcca9e9d8d18 (patch)
treebff7b0368662e12bdfc484d340c6a95896640dec /Doc/library/turtle.rst
parentcef3bdc01d6592ffadc9f1a6ff96133bd9c8f61b (diff)
downloadcpython-6e978d275424f9488d1378ed1421dcca9e9d8d18.zip
cpython-6e978d275424f9488d1378ed1421dcca9e9d8d18.tar.gz
cpython-6e978d275424f9488d1378ed1421dcca9e9d8d18.tar.bz2
Issue #21971: Index and update turtledemo doc.
Diffstat (limited to 'Doc/library/turtle.rst')
-rw-r--r--Doc/library/turtle.rst31
1 files changed, 18 insertions, 13 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
index 9e70b40..5899f3d 100644
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -2274,10 +2274,13 @@ study it as an example and see its effects when running the demos (preferably
not from within the demo-viewer).
-Demo scripts
-============
+:mod:`turtledemo` --- Demo scripts
+==================================
+
+.. module:: turtledemo
+ :synopsis: A viewer for example turtle scripts
-There is a set of demo scripts in the :mod:`turtledemo` package. These
+The :mod:`turtledemo` package includes a set of demo scripts. These
scripts can be run and viewed using the supplied demo viewer as follows::
python -m turtledemo
@@ -2288,16 +2291,13 @@ Alternatively, you can run the demo scripts individually. For example, ::
The :mod:`turtledemo` package directory contains:
-- a set of 15 demo scripts demonstrating different features of the new module
- :mod:`turtle`;
-- a demo viewer :file:`__main__.py` which can be used to view the sourcecode
- of the scripts and run them at the same time. 14 of the examples can be
- accessed via the Examples menu; all of them can also be run standalone.
-- The example :mod:`turtledemo.two_canvases` demonstrates the simultaneous
- use of two canvases with the turtle module. Therefore it only can be run
- standalone.
-- There is a :file:`turtle.cfg` file in this directory, which serves as an
- example for how to write and use such files.
+- A demo viewer :file:`__main__.py` which can be used to view the sourcecode
+ of the scripts and run them at the same time.
+- Multiple scripts demonstrating different features of the :mod:`turtle`
+ module. Examples can be accessed via the Examples menu. They can also
+ be run standalone.
+- A :file:`turtle.cfg` file which serves as an example of how to write
+ and use such files.
The demo scripts are:
@@ -2320,6 +2320,8 @@ The demo scripts are:
+----------------+------------------------------+-----------------------+
| colormixer | experiment with r, g, b | :func:`ondrag` |
+----------------+------------------------------+-----------------------+
+| forest | 3 breadth-first trees | randomization |
++----------------+------------------------------+-----------------------+
| fractalcurves | Hilbert & Koch curves | recursion |
+----------------+------------------------------+-----------------------+
| lindenmayer | ethnomathematics | L-System |
@@ -2352,6 +2354,9 @@ The demo scripts are:
| tree | a (graphical) breadth | :func:`clone` |
| | first tree (using generators)| |
+----------------+------------------------------+-----------------------+
+| two_canvases | simple design | turtles on two |
+| | | canvases |
++----------------+------------------------------+-----------------------+
| wikipedia | a pattern from the wikipedia | :func:`clone`, |
| | article on turtle graphics | :func:`undo` |
+----------------+------------------------------+-----------------------+