/usr/lib64/python2.6/Demo/turtle
NameSizeModeActions
about_turtle.txt34960644editdlrm
about_turtledemo.txt3020644editdlrm
demohelp.txt24380644editdlrm
tdemo_bytedesign.py41960644editdlrm
tdemo_bytedesign.pyc53370644editdlrm
tdemo_bytedesign.pyo53370644editdlrm
tdemo_chaos.py9530644editdlrm
tdemo_chaos.pyc23030644editdlrm
tdemo_chaos.pyo23030644editdlrm
tdemo_clock.py29950644editdlrm
tdemo_clock.pyc44980644editdlrm
tdemo_clock.pyo44980644editdlrm
tdemo_colormixer.py13380644editdlrm
tdemo_colormixer.pyc23670644editdlrm
tdemo_colormixer.pyo23670644editdlrm
tdemo_fractalcurves.py33870644editdlrm
tdemo_fractalcurves.pyc35380644editdlrm
tdemo_fractalcurves.pyo35380644editdlrm
tdemo_I_dontlike_tiltdemo.py10500644editdlrm
tdemo_I_dontlike_tiltdemo.pyc16730644editdlrm
tdemo_I_dontlike_tiltdemo.pyo16730644editdlrm
tdemo_lindenmayer_indian.py24100644editdlrm
tdemo_lindenmayer_indian.pyc36120644editdlrm
tdemo_lindenmayer_indian.pyo36120644editdlrm
tdemo_minimal_hanoi.py19380644editdlrm
tdemo_minimal_hanoi.pyc35950644editdlrm
tdemo_minimal_hanoi.pyo35950644editdlrm
tdemo_paint.py11030644editdlrm
tdemo_paint.pyc17410644editdlrm
tdemo_paint.pyo17410644editdlrm
tdemo_peace.py10940644editdlrm
tdemo_peace.pyc14470644editdlrm
tdemo_peace.pyo14470644editdlrm
tdemo_penrose.py35130644editdlrm
tdemo_penrose.pyc60670644editdlrm
tdemo_penrose.pyo60670644editdlrm
tdemo_planet_and_moon.py28170644editdlrm
tdemo_planet_and_moon.pyc45620644editdlrm
tdemo_planet_and_moon.pyo45620644editdlrm
tdemo_tree.py13880644editdlrm
tdemo_tree.pyc21330644editdlrm
tdemo_tree.pyo21330644editdlrm
tdemo_wikipedia.py13470644editdlrm
tdemo_wikipedia.pyc19860644editdlrm
tdemo_wikipedia.pyo19860644editdlrm
tdemo_yinyang.py7850644editdlrm
tdemo_yinyang.pyc13220644editdlrm
tdemo_yinyang.pyo13220644editdlrm
turtle.cfg1600644editdlrm
turtleDemo.py101460644editdlrm
turtleDemo.pyc102870644editdlrm
turtleDemo.pyo102870644editdlrm
turtledemo_two_canvases.py8620644editdlrm
turtledemo_two_canvases.pyc12600644editdlrm
turtledemo_two_canvases.pyo12600644editdlrm
Edit: /usr/lib64/python2.6/Demo/turtle/about_turtle.txt (3496B)
======================================================== A new turtle module for Python ======================================================== Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966. Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it the command turtle.forward(15), and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the command turtle.left(25), and it rotates in-place 25 degrees clockwise. By combining together these and similar commands, intricate shapes and pictures can easily be drawn. ----- turtle.py This module is an extended reimplementation of turtle.py from the Python standard distribution up to Python 2.5. (See: http:\\www.python.org) It tries to keep the merits of turtle.py and to be (nearly) 100% compatible with it. This means in the first place to enable the learning programmer to use all the commands, classes and methods interactively when using the module from within IDLE run with the -n switch. Roughly it has the following features added: - Better animation of the turtle movements, especially of turning the turtle. So the turtles can more easily be used as a visual feedback instrument by the (beginning) programmer. - Different turtle shapes, gif-images as turtle shapes, user defined and user controllable turtle shapes, among them compound (multicolored) shapes. Turtle shapes can be stgretched and tilted, which makes turtles zu very versatile geometrical objects. - Fine control over turtle movement and screen updates via delay(), and enhanced tracer() and speed() methods. - Aliases for the most commonly used commands, like fd for forward etc., following the early Logo traditions. This reduces the boring work of typing long sequences of commands, which often occur in a natural way when kids try to program fancy pictures on their first encounter with turtle graphcis. - Turtles now have an undo()-method with configurable undo-buffer. - Some simple commands/methods for creating event driven programs (mouse-, key-, timer-events). Especially useful for programming games. - A scrollable Canvas class. The default scrollable Canvas can be extended interactively as needed while playing around with the turtle(s). - A TurtleScreen class with methods controlling background color or background image, window and canvas size and other properties of the TurtleScreen. - There is a method, setworldcoordinates(), to install a user defined coordinate-system for the TurtleScreen. - The implementation uses a 2-vector class named Vec2D, derived from tuple. This class is public, so it can be imported by the application programmer, which makes certain types of computations very natural and compact. - Appearance of the TurtleScreen and the Turtles at startup/import can be configured by means of a turtle.cfg configuration file. The default configuration mimics the appearance of the old turtle module. - If configured appropriately the module reads in docstrings from a docstring dictionary in some different language, supplied separately and replaces the english ones by those read in. There is a utility function write_docstringdict() to write a dictionary with the original (english) docstrings to disc, so it can serve as a template for translations.