def main(*argv): "Square test program." print Square.main.__doc__ c = Square(Point(0, 0), 1) GraphicalObject.test(c) return 0
def main(*argv): "Circle test program." print((Circle.main.__doc__)) c = Circle(Point(0, 0), 1) GraphicalObject.test(c) return 0
def test(go): "GraphicalObject test program." go.draw() go.moveTo(Point(1, 1)) go.erase()
def main(*argv): "Rectangle test program." print Rectangle.main.__doc__ c = Rectangle(Point(0, 0), 1, 2) GraphicalObject.test(c) return 0