generated from mwc/lab_names
20 lines
248 B
Python
20 lines
248 B
Python
# test_shapes.py
|
|
# --------------
|
|
# By MWC contributors
|
|
|
|
from turtle import *
|
|
from shapes import triangle, rectangle
|
|
|
|
def flyto(x, y):
|
|
penup()
|
|
goto(x, y)
|
|
pendown()
|
|
|
|
flyto(-100, 0)
|
|
triangle(100)
|
|
flyto(100, 0)
|
|
rectangle(20, 80)
|
|
input()
|
|
|
|
|