
The object-oriented interface uses essentially two+two classes: Graphics, it needs a version of Python installed with Tk support. Because it uses tkinter for the underlying

The turtle module provides turtle graphics primitives, in both object-orientedĪnd procedure-oriented ways. The module from within IDLE run with the -n switch. Programmer to use all the commands, classes and methods interactively when using This means in the first place to enable the learning It tries to keep the merits of the old turtle module and to be (nearly) 100%Ĭompatible with it. Module from the Python standard distribution up to version Python 2.5.

The turtle module is an extended reimplementation of the same-named From turtle import * color ( 'red', 'yellow' ) begin_fill () while True : forward ( 200 ) left ( 170 ) if abs ( pos ()) < 1 : break end_fill () done ()īy combining together these and similar commands, intricate shapes and pictures
