code: def set_mapper_index(self, index, mapper):
          
          parent = index.parent()
          mapper.setRootIndex(parent)
          mapper.setCurrentModelIndex(index)
docs: Set the mapper to the given index
  
          :param index: the index to set
          :type index: QtCore.QModelIndex
          :param mapper: the mapper to set
          :type mapper: QtGui.QDataWidgetMapper
          :returns: None
          :rtype: None
          :raises: None