Changes

Line 672: Line 672:     
===Understanding the Structure of Turtle Art===
 
===Understanding the Structure of Turtle Art===
 +
Turtle Art is created in object oriented Python code. This is based around the definition of classes and the creation of object(s) which are instance(s) of that class. These objects then have properties and methods which are defined by their class.
    +
See http://docs.python.org/tutorial/classes.html for a description of classes in Python.
 +
 +
See the file TurtleArtActivity.py. This is where it starts. When an instance of TurtleArtActivity is created, setup_canvas() creates an instance of TurtleArtWindow: self.tw This instance of TurtleArtWindow creates an instance of  LogoCode: self.lc and an instance of TurtleGraphics: canvas
 +
 +
 +
Class TurtleArtWindow - Useful properties & methods
 +
 +
Class TurtleGraphics -  Useful properties & methods
 +
 +
Functions from other Python libraries
    
===From the field===
 
===From the field===
2,486

edits