code: def select(self, index, command=QtGui.QItemSelectionModel.Toggle):
          
          component = self.model().data(index, QtCore.Qt.UserRole)
          self.selectComponent(component, index)
docs: Changes the inclusion of the given *index* in the selection model