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