

Its constructor needs a Canvas, ScrolledCanvas RawTurtle (alias: RawPen) defines Turtle objects which draw Turtle is used as a standalone tool for doing graphics.Īs a singleton object, inheriting from its class is not possible.Īll methods of TurtleScreen/Screen also exist as functions, i.e. The function Screen() returns a singleton object of a Its constructor needs a tkinter.Canvas or a

The TurtleScreen class defines graphics windows as a playground for

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 Translation of docstrings into different languagesĬmd - Support for line-oriented command interpretersįrom turtle import * color ( 'red', 'yellow' ) begin_fill () while True : forward ( 200 ) left ( 170 ) if abs ( pos ()) Methods specific to Screen, not inherited from TurtleScreen.Methods of TurtleScreen/Screen and corresponding functions.Methods of RawTurtle/Turtle and corresponding functions.Overview of available Turtle and Screen methods.
