| Intro | What's new! | Features | Download | Screenshots | Docs | Contact |
The module xturtle.py is an extended reimplementation of
turtle.py from the
Python standard distribution. (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.
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.
Fine control over turtle movement and screen updates via
delay(),
and enhanced tracer() and speed(),
update()
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 (still not knowing nothing about loops).
Some simple commands/methods for creating event driven programs (mouse-, key-, timer-events). Especially useful for programming simple games.
A scrollable Canvas class. The scrollable Canvas can be
extended interactively as needed while playing around with the turtle(s)
(e. g. to follow some escaped turtle).
The Window containing the default canvas when using the Pen
- class also can be
resized and repositioned programmatically.
Commands for controlling background color or background image.
The implementation uses a 2-vector class named _Vec, derived from
built-in type tuple. This class can also be imported (explicitely) and used by the
programmer, which makes certain types of computations very natural
and compact.