def ChildChanged(self, child): if self.document is not None: self.document.AddClearRect(self.bounding_rect) Compound.ChildChanged(self, child) if child is self.path: self.text.PathChanged() if self.document is not None: self.document.AddClearRect(self.bounding_rect)
def ChildChanged(self, child): idx = self.objects.index(child) if idx % 2 == 0: if self.changing_children: self.child_has_changed = 1 else: depth = self.depth() recompute = self.recompute if idx > 0: self.document.AddAfterHandler(recompute, (idx - 1, ), depth) if idx < len(self.objects) - 1: self.document.AddAfterHandler(recompute, (idx + 1, ), depth) else: Compound.ChildChanged(self, child) self.del_lazy_attrs()