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

Skip to content

Commit 6e978d2

Browse files
committed
Issue #21971: Index and update turtledemo doc.
1 parent cef3bdc commit 6e978d2

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

Doc/library/turtle.rst

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,10 +2274,13 @@ study it as an example and see its effects when running the demos (preferably
22742274
not from within the demo-viewer).
22752275

22762276

2277-
Demo scripts
2278-
============
2277+
:mod:`turtledemo` --- Demo scripts
2278+
==================================
2279+
2280+
.. module:: turtledemo
2281+
:synopsis: A viewer for example turtle scripts
22792282

2280-
There is a set of demo scripts in the :mod:`turtledemo` package. These
2283+
The :mod:`turtledemo` package includes a set of demo scripts. These
22812284
scripts can be run and viewed using the supplied demo viewer as follows::
22822285

22832286
python -m turtledemo
@@ -2288,16 +2291,13 @@ Alternatively, you can run the demo scripts individually. For example, ::
22882291

22892292
The :mod:`turtledemo` package directory contains:
22902293

2291-
- a set of 15 demo scripts demonstrating different features of the new module
2292-
:mod:`turtle`;
2293-
- a demo viewer :file:`__main__.py` which can be used to view the sourcecode
2294-
of the scripts and run them at the same time. 14 of the examples can be
2295-
accessed via the Examples menu; all of them can also be run standalone.
2296-
- The example :mod:`turtledemo.two_canvases` demonstrates the simultaneous
2297-
use of two canvases with the turtle module. Therefore it only can be run
2298-
standalone.
2299-
- There is a :file:`turtle.cfg` file in this directory, which serves as an
2300-
example for how to write and use such files.
2294+
- A demo viewer :file:`__main__.py` which can be used to view the sourcecode
2295+
of the scripts and run them at the same time.
2296+
- Multiple scripts demonstrating different features of the :mod:`turtle`
2297+
module. Examples can be accessed via the Examples menu. They can also
2298+
be run standalone.
2299+
- A :file:`turtle.cfg` file which serves as an example of how to write
2300+
and use such files.
23012301

23022302
The demo scripts are:
23032303

@@ -2320,6 +2320,8 @@ The demo scripts are:
23202320
+----------------+------------------------------+-----------------------+
23212321
| colormixer | experiment with r, g, b | :func:`ondrag` |
23222322
+----------------+------------------------------+-----------------------+
2323+
| forest | 3 breadth-first trees | randomization |
2324+
+----------------+------------------------------+-----------------------+
23232325
| fractalcurves | Hilbert & Koch curves | recursion |
23242326
+----------------+------------------------------+-----------------------+
23252327
| lindenmayer | ethnomathematics | L-System |
@@ -2352,6 +2354,9 @@ The demo scripts are:
23522354
| tree | a (graphical) breadth | :func:`clone` |
23532355
| | first tree (using generators)| |
23542356
+----------------+------------------------------+-----------------------+
2357+
| two_canvases | simple design | turtles on two |
2358+
| | | canvases |
2359+
+----------------+------------------------------+-----------------------+
23552360
| wikipedia | a pattern from the wikipedia | :func:`clone`, |
23562361
| | article on turtle graphics | :func:`undo` |
23572362
+----------------+------------------------------+-----------------------+

0 commit comments

Comments
 (0)