def homothety(self, center, sx, sy): with PostponeCurveGeometricUpdatingToEnd(self): Graphic.homothety(self, center, sx, sy) for element in self.elements: element.homothety(center, sx, sy)
def homothety(self, center, sx, sy): with PostponeGeometricUpdatingToEnd(self): self.coords = homothety(self.coords, ORIGIN, sx, sy) Graphic.homothety(self, center, sx, sy)