(self)
Return QModelIndex of the selected row or invalid if no selection.
Return QModelIndex of the selected row or invalid if no selection.
Return QModelIndex of the selected row or invalid if no selection .
def selectedRow(self):
        """ Return QModelIndex of the selected row or invalid if no selection.
        """
        rows = self.selectedRows()
        if rows:
            return rows[0]
        else:
            return QModelIndex()
def selectedRow ( self ) : rows = self . selectedRows ( ) if rows : return rows [ 0 ] else : return QModelIndex ( )