On modified method

def on_modified(self, event):
        """On modified method"""
        for delegate in self.delegates:
            if hasattr(delegate, "on_modified"):
                delegate.on_modified(event)