def columnCount(self, parent=QtCore.QModelIndex()):
        """Determines the numbers of columns the view will draw

        Required by view, see :qtdoc:`subclassing<qabstractitemmodel.subclassing>`
        """
        if parent.isValid():
            return self._stim.columnCount(parent.row())
        else:
            return self._stim.columnCount()
def columnCount ( self , parent = QtCore . QModelIndex ( ) ) : if parent . isValid ( ) : return self . _stim . columnCount ( parent . row ( ) ) else : return self . _stim . columnCount ( )
Determines the numbers of columns the view will draw

        Required by view, see :qtdoc:`subclassing<qabstractitemmodel.subclassing>`