def __init__(self, bounds): self.x, self.y, self.width, self.height = fromBounds(bounds) self.xcenter = self.x + self.width / 2 self.ycenter = self.y + self.height / 2 self.selected = 0 self.comps = []
def __init__(self, bounds): self.x, self.y, self.width, self.height = fromBounds(bounds)
def __init__(self, bounds, X, Y, space): self.x, self.y, self.width, self.height = fromBounds(bounds) self.space = space self.X = X self.Y = Y