def __init__(self, x, y, vx, vy): self.size = 500 self.px = x self.py = y self.m = 20 self.vx = vx self.vy = vy Circle.__init__(self, Point(self.px, self.py), self.m)
def __init__(self, graphWin, name, size, mass, pX, pY, orbitLineSize=0, fixed=False): Circle.__init__(self, Point(pX, pY), size) self.size = size self.mass = mass self.name = name self.speedX = 0 self.speedY = 0 self.fixed = fixed self.apoasis = -1 self.periasis = -1 self.orbitLine = [] self.orbitLineSize = orbitLineSize
def __init__(self, center, size, win): self.center = center self.size = size self.win = win Circle.__init__(self, (self.center), self.size) self.draw(win)
def __init__(self, location, velocity): Circle.__init__(self, location, dotSize) self.velocity = velocity self.setFill(dotColor)
def __init__(self, center, radius, velocity): Circle.__init__(self, center, radius) self.vel = velocity self.left = self.vel[0] < 0 self.down = self.vel[1] < 0 self.setFill("white")