source/riffle/model.py
def rowCount(self, parent):
        '''Return number of children *parent* index has.'''
        if parent.column() > 0:
            return 0

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

        return len(item.children)
def rowCount(self, parent):
        '''Return number of children *parent* index has.'''
        if parent.column() > 0:
            return 0

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

        return len(item.children)
def rowCount ( self , parent ) : if parent . column ( ) > 0 : return 0 if parent . isValid ( ) : item = parent . internalPointer ( ) else : item = self . root return len ( item . children )
Return number of children *parent* index has.
Return number of children * parent * index has .