Line 678: |
Line 678: |
| 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 | | 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 | + | {| border=1 cellpadding=3 cellspacing=3 style="margin: 1em auto 1em auto; border: 1px #666666 solid; border-collapse: collapse; background: #f9f9f9;" |
| !Class!!Defined in!!Instance!!Created in | | !Class!!Defined in!!Instance!!Created in |
| |- | | |- |
Line 695: |
Line 695: |
| | | |
| Class TurtleArtWindow – useful properties and methods (from within tamyblock.py, lc.tw is the class instance) | | Class TurtleArtWindow – useful properties and methods (from within tamyblock.py, lc.tw is the class instance) |
− | {| border=1 | + | {| border=1 cellpadding=3 cellspacing=3 style="margin: 1em auto 1em auto; border: 1px #666666 solid; border-collapse: collapse; background: #f9f9f9;" |
| !Methods and data attributes!!Example!!Notes | | !Methods and data attributes!!Example!!Notes |
| |- | | |- |
Line 710: |
Line 710: |
| | | |
| Class TurtleGraphics – useful properties and methods (from within tamyblock.py, lc.tw.canvas is the class instance) | | Class TurtleGraphics – useful properties and methods (from within tamyblock.py, lc.tw.canvas is the class instance) |
− | {| border=1 | + | {| border=1 cellpadding=3 cellspacing=3 style="margin: 1em auto 1em auto; border: 1px #666666 solid; border-collapse: collapse; background: #f9f9f9;" |
| !Methods and data attributes!!Example!!Notes | | !Methods and data attributes!!Example!!Notes |
| |- | | |- |
Line 749: |
Line 749: |
| | | |
| Other useful Python functions | | Other useful Python functions |
− | {| border=1 | + | {| border=1 cellpadding=3 cellspacing=3 style="margin: 1em auto 1em auto; border: 1px #666666 solid; border-collapse: collapse; background: #f9f9f9;" |
| !Module!!Methods and data attributes!!Example!!Notes | | !Module!!Methods and data attributes!!Example!!Notes |
| |- | | |- |