code: def refresh(self):
          
          if self.isHidden():
              if self.editor is not None:
                  self.clear_matches()
              return
          state = self.editor is not None
          for widget in self.widgets:
              widget.setEnabled(state)
          if state:
              self.find()
docs: Refresh widget