code: def _update_delegate(self):
          
          self._refresh_count -= 1
          if self._refresh_count != 0:
              return
          try:
              delegate = self.delegate
              if not self.is_visible():
                  return
              # The table destroys when it goes out of view
              # so we always have to make a new one
              delegate.create_widget()
              delegate.init_widget()
              
              #  Set the index widget
              self.view.widget.setIndexWidget(self.index, delegate.widget)
          except RuntimeError:
              pass
docs: Update the delegate cell widget. This is deferred so it
          does not get called until the user is done scrolling.