taurus_pyqtgraph/curvesmodel.py
def swapItems(self, index1, index2):
        """ swap the items described by index1 and index2 in the list"""
        r1, r2 = index1.row(), index2.row()
        items = self.taurusItems
        self.layoutAboutToBeChanged.emit()
        items[r1], items[r2] = items[r2], items[r1]
        self.dataChanged.emit(index1, index2)
        self.layoutChanged.emit()
 swap the items described by index1 and index2 in the list
swap the items described by index1 and index2 in the list
swap the items described by index1 and index2 in the list
def swapItems(self, index1, index2):
        r1, r2 = index1.row(), index2.row()
        items = self.taurusItems
        self.layoutAboutToBeChanged.emit()
        items[r1], items[r2] = items[r2], items[r1]
        self.dataChanged.emit(index1, index2)
        self.layoutChanged.emit()
def swapItems ( self , index1 , index2 ) : r1 , r2 = index1 . row ( ) , index2 . row ( ) items = self . taurusItems self . layoutAboutToBeChanged . emit ( ) items [ r1 ] , items [ r2 ] = items [ r2 ] , items [ r1 ] self . dataChanged . emit ( index1 , index2 ) self . layoutChanged . emit ( )
swap the items described by index1 and index2 in the list
swap the items described by index1 and index2 in the list
""" swap the items described by index1 and index2 in the list"""
self
index1
index2