def rotate(self, center, angle): with PostponeCurveGeometricUpdatingToEnd(self): Graphic.rotate(self, center, angle) for element in self.elements: element.rotate(center, angle)
def rotate(self, center, angle): with PostponeGeometricUpdatingToEnd(self): self.coords = rotate(self.coords, ORIGIN, angle) Graphic.rotate(self, center, angle)