Reimplemented from QtCore.QAbstractItemModel

def rowCount(self, parent):
        """Reimplemented from QtCore.QAbstractItemModel"""
        if not parent.isValid():
            v = self._conf
        else:
            v = self.get_value(parent)
        if isinstance(v, Section):
            return len(v.keys())
        else:
            return 0