code: def initialize(self, force=False):
          
          if force or (self.isVisible() and \
                       not self.isInitialized() and \
                       not self.signalsBlocked()):
              
              self._initialized = True
              self.initialized.emit()
docs: Initializes the view if it is visible or being loaded.