def insertTest(self, stim, position):
        """See :meth:`ProcotolModel<sparkle.run.protocol_model.ProtocolTabelModel.insert>`"""
        if position == -1:
            position = self.rowCount()
        self.beginInsertRows(QtCore.QModelIndex(), position, position)
        self._testmodel.insert(stim,  position)
        self.endInsertRows()
def insertTest ( self , stim , position ) : if position == - 1 : position = self . rowCount ( ) self . beginInsertRows ( QtCore . QModelIndex ( ) , position , position ) self . _testmodel . insert ( stim , position ) self . endInsertRows ( )
See :meth:`ProcotolModel<sparkle.run.protocol_model.ProtocolTabelModel.insert>`