Пример #1
0
 def __init__(self, p1, sides,length):
     GeometricObject.__init__(self)
     self.start = p1
     self.sideLength = length
     self.numsides = sides
Пример #2
0
 def __init__(self, p1,p2):
     GeometricObject.__init__(self)
     self.p1 = p1
     self.p2 = p2
Пример #3
0
 def __init__(self, p1,r):
     GeometricObject.__init__(self)
     self.center = p1
     self.radius = r
Пример #4
0
 def __init__(self, x,y):
     GeometricObject.__init__(self)
     self.x = x
     self.y = y
Пример #5
0
 def __init__(self, r=1.0, color="white", filled=True):
     '''creates a circle with radius r'''
     GeometricObject.__init__(self, color, filled)
     self._r = r
Пример #6
0
 def __init__(self, s1=1.0, s2=1.0, s3=1.0, color="white", filled=True):
     GeometricObject.__init__(self, color, filled)
     self._s1 = s1
     self._s2 = s2
     self._s3 = s3