code: def set_index(self, index):
          
          self.setCurrentIndex(index)
          self.new_root.emit(index)
          self.scrollTo(index)
docs: Set the current index to the row of the given index
  
          :param index: the index to set the level to
          :type index: QtCore.QModelIndex
          :returns: None
          :rtype: None
          :raises: None