def __init__(self, statue, initial_angle, initial_radius, pace, **style): #Goes around statue at a particular distance and starting angle. #The pace is also set here. assert isinstance(statue, Statue) self.statue = statue Circle.__init__(self, statue.position, initial_radius) self.theta = initial_angle % 360 self.pace = pace if self.dtheta < 0: heading = self.theta - 90 else: heading = self.theta + 90 Turtle.__init__(self, self.point_at(initial_angle), heading, **style) self.original['pace'] = self.pace self.original['statue'] = self.statue
def revert(self): Turtle.revert(self) self.recalibrate()
def __init__(self, position, radius, **style): Turtle.__init__(self, position, 0, **style) Circle.__init__(self, position, radius) self.original['radius'] = radius