def METHOD_NAME(self):
    def perform_update():
        try:
            self.update()
        finally:
            self._update_scheduled = False
    if not self._update_scheduled:
        self._update_scheduled = True
        self.text.after_idle(perform_update)