source/riffle/model.py
def index(self, row, column, parent):
        '''Return index for *row* and *column* under *parent*.'''
        if not self.hasIndex(row, column, parent):
            return QModelIndex()

        if not parent.isValid():
            item = self.root
        else:
            item = parent.internalPointer()

        try:
            child = item.children[row]
        except IndexError:
            return QModelIndex()
        else:
            return self.createIndex(row, column, child)
def index(self, row, column, parent):
        '''Return index for *row* and *column* under *parent*.'''
        if not self.hasIndex(row, column, parent):
            return QModelIndex()

        if not parent.isValid():
            item = self.root
        else:
            item = parent.internalPointer()

        try:
            child = item.children[row]
        except IndexError:
            return QModelIndex()
        else:
            return self.createIndex(row, column, child)
def index ( self , row , column , parent ) : if not self . hasIndex ( row , column , parent ) : return QModelIndex ( ) if not parent . isValid ( ) : item = self . root else : item = parent . internalPointer ( ) try : child = item . children [ row ] except IndexError : return QModelIndex ( ) else : return self . createIndex ( row , column , child )
Return index for *row* and *column* under *parent*.
Return index for * row * and * column * under * parent * .