Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/turtle.rst

    r2 r391  
    1919Seymour Papert in 1966.
    2020
    21 Imagine a robotic turtle starting at (0, 0) in the x-y plane.  Give it the
     21Imagine a robotic turtle starting at (0, 0) in the x-y plane.  After an ``import turtle``, give it the
    2222command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
    2323direction it is facing, drawing a line as it moves.  Give it the command
    24 ``turtle.left(25)``, and it rotates in-place 25 degrees clockwise.
     24``turtle.right(25)``, and it rotates in-place 25 degrees clockwise.
    2525
    2626By combining together these and similar commands, intricate shapes and pictures
     
    158158   | :func:`onrelease`
    159159   | :func:`ondrag`
     160   | :func:`mainloop` | :func:`done`
    160161
    161162Special Turtle methods
     
    709710      >>> turtle.heading()
    710711      90.0
    711       >>> turtle.degrees(400.0)  # angle measurement in gon
     712
     713      Change angle measurement unit to grad (also known as gon,
     714      grade, or gradian and equals 1/100-th of the right angle.)
     715      >>> turtle.degrees(400.0)
    712716      >>> turtle.heading()
    713717      100.0
     
    876880       >>> turtle.pencolor(tup)
    877881       >>> turtle.pencolor()
    878        (0.20000000000000001, 0.80000000000000004, 0.5490196078431373)
     882       (0.2, 0.8, 0.5490196078431373)
    879883       >>> colormode(255)
    880884       >>> turtle.pencolor()
     
    12891293
    12901294
     1295.. function:: mainloop()
     1296              done()
     1297
     1298   Starts event loop - calling Tkinter's mainloop function. Must be the last
     1299   statement in a turtle graphics program.
     1300
     1301      >>> turtle.mainloop()
     1302
     1303
    12911304Special Turtle methods
    12921305----------------------
     
    14551468   :param args: a color string or three numbers in the range 0..colormode or a
    14561469                3-tuple of such numbers
     1470
    14571471
    14581472   Set or return background color of the TurtleScreen.
     
    18361850
    18371851   Set the size and position of the main window.  Default values of arguments
    1838    are stored in the configuration dicionary and can be changed via a
     1852   are stored in the configuration dictionary and can be changed via a
    18391853   :file:`turtle.cfg` file.
    18401854
     
    19021916
    19031917
    1904 .. class:: ScrolledCavas(master)
     1918.. class:: ScrolledCanvas(master)
    19051919
    19061920   :param master: some Tkinter widget to contain the ScrolledCanvas, i.e.
     
    21602174The demoscripts are:
    21612175
     2176.. tabularcolumns:: |l|L|L|
     2177
    21622178+----------------+------------------------------+-----------------------+
    21632179| Name           | Description                  | Features              |
    2164 +----------------+------------------------------+-----------------------+
     2180+================+==============================+=======================+
    21652181| bytedesign     | complex classical            | :func:`tracer`, delay,|
    21662182|                | turtlegraphics pattern       | :func:`update`        |
    21672183+----------------+------------------------------+-----------------------+
    2168 | chaos          | graphs verhust dynamics,     | world coordinates     |
    2169 |                | proves that you must not     |                       |
    2170 |                | trust computers' computations|                       |
     2184| chaos          | graphs Verhulst dynamics,    | world coordinates     |
     2185|                | shows that computer's        |                       |
     2186|                | computations can generate    |                       |
     2187|                | results sometimes against the|                       |
     2188|                | common sense expectations    |                       |
    21712189+----------------+------------------------------+-----------------------+
    21722190| clock          | analog clock showing time    | turtles as clock's    |
Note: See TracChangeset for help on using the changeset viewer.