(self)
return rows[0].row() if rows else -1
Return the current selected variable index.
Return the current selected variable index.
Return the current selected variable index .
def selected_var_index(self):
        """Return the current selected variable index."""
        rows = self.variables_view.selectedIndexes()
        assert len(rows) <= 1
        return rows[0].row() if rows else -1
def selected_var_index ( self ) : rows = self . variables_view . selectedIndexes ( ) assert len ( rows ) <= 1 return rows [ 0 ] . row ( ) if rows else - 1