Changeset 391 for python/trunk/Doc/library/turtle.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/turtle.rst
r2 r391 19 19 Seymour Papert in 1966. 20 20 21 Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it the21 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the 22 22 command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the 23 23 direction 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. 25 25 26 26 By combining together these and similar commands, intricate shapes and pictures … … 158 158 | :func:`onrelease` 159 159 | :func:`ondrag` 160 | :func:`mainloop` | :func:`done` 160 161 161 162 Special Turtle methods … … 709 710 >>> turtle.heading() 710 711 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) 712 716 >>> turtle.heading() 713 717 100.0 … … 876 880 >>> turtle.pencolor(tup) 877 881 >>> turtle.pencolor() 878 (0.2 0000000000000001, 0.80000000000000004, 0.5490196078431373)882 (0.2, 0.8, 0.5490196078431373) 879 883 >>> colormode(255) 880 884 >>> turtle.pencolor() … … 1289 1293 1290 1294 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 1291 1304 Special Turtle methods 1292 1305 ---------------------- … … 1455 1468 :param args: a color string or three numbers in the range 0..colormode or a 1456 1469 3-tuple of such numbers 1470 1457 1471 1458 1472 Set or return background color of the TurtleScreen. … … 1836 1850 1837 1851 Set the size and position of the main window. Default values of arguments 1838 are stored in the configuration dic ionary and can be changed via a1852 are stored in the configuration dictionary and can be changed via a 1839 1853 :file:`turtle.cfg` file. 1840 1854 … … 1902 1916 1903 1917 1904 .. class:: ScrolledCa vas(master)1918 .. class:: ScrolledCanvas(master) 1905 1919 1906 1920 :param master: some Tkinter widget to contain the ScrolledCanvas, i.e. … … 2160 2174 The demoscripts are: 2161 2175 2176 .. tabularcolumns:: |l|L|L| 2177 2162 2178 +----------------+------------------------------+-----------------------+ 2163 2179 | Name | Description | Features | 2164 + ----------------+------------------------------+-----------------------+2180 +================+==============================+=======================+ 2165 2181 | bytedesign | complex classical | :func:`tracer`, delay,| 2166 2182 | | turtlegraphics pattern | :func:`update` | 2167 2183 +----------------+------------------------------+-----------------------+ 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 | | 2171 2189 +----------------+------------------------------+-----------------------+ 2172 2190 | clock | analog clock showing time | turtles as clock's |
Note:
See TracChangeset
for help on using the changeset viewer.