Translations:Scripted objects/67/fr

def updateData(self, fp, prop): "If a property of the handled feature has changed we have the chance to handle this here" # fp is the handled feature, prop is the name of the property that has changed if not self.constructed: return if prop == "p1": p = fp.getPropertyByName("p1") self.coords.point.set1Value(0, p)       elif prop == "p2": p = fp.getPropertyByName("p2") self.coords.point.set1Value(1, p)