File: helloTurtle.py

package info (click to toggle)
pythoncard 0.8.2-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,452 kB
  • sloc: python: 56,787; makefile: 56; sh: 22
file content (9 lines) | stat: -rw-r--r-- 163 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
# this is a simple turtle script

from wrappers import Turtle

def draw(canvas):
    t = Turtle(canvas)
    t.cls()
    t.forward(100)
    t.write("Hello Turtle")