Changes

Jump to navigation Jump to search
Line 676: Line 676:  
See http://docs.python.org/tutorial/classes.html for a description of classes in Python.
 
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
+
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.tw.lc and an instance of TurtleGraphics: self.tw.canvas
 +
 
 +
{| border=1
 +
!Class!!defined in!!instance!!created in
 +
|-
 +
|TurtleArtActivity||TurtleArtActivity.py|| ||Sugar
 +
|-
 +
|TurtleArtWindow||tawindow.py||tw||TurtleArtActivity.py
 +
|-
 +
|LogoCode||talogo.py||lc||tawindow.py
 +
|-
 +
|TurtleGraphics||tacanvas.py||canvas||tawindow.py
 +
|-
 +
|Turtles, Turtle||taturtle.py||turtle||tawindow.py, tacanvas.py
 +
|-
 +
|Blocks, Block||tablock.py||block||tawindow.py
 +
|-
 +
|TurtleMain||turtleart.py|| ||if launching from outside of Sugar
 +
|}
   −
[[Image:TurtleClasses.jpg]]
      
[[Image:Turtleartwindow.jpg]]
 
[[Image:Turtleartwindow.jpg]]

Navigation menu