taurus_pyqtgraph/curvesmodel.py
def _onMoveUpAction(self):
        """ Move up action swap the selected row with the previous one"""
        i1 = self.ui.curvesTable.currentIndex()
        i2 = self.ui.curvesTable.model().index(i1.row() - 1, 0)
        self.__commitAndCloseEditor(i1)
        self.model.swapItems(i1, i2)
        self.ui.curvesTable.setCurrentIndex(i2)
 Move up action swap the selected row with the previous one
Move up action swap the selected row with the previous one
Move up action swap the selected row with the previous one
def _onMoveUpAction(self):
        i1 = self.ui.curvesTable.currentIndex()
        i2 = self.ui.curvesTable.model().index(i1.row() - 1, 0)
        self.__commitAndCloseEditor(i1)
        self.model.swapItems(i1, i2)
        self.ui.curvesTable.setCurrentIndex(i2)
def _onMoveUpAction ( self ) : i1 = self . ui . curvesTable . currentIndex ( ) i2 = self . ui . curvesTable . model ( ) . index ( i1 . row ( ) - 1 , 0 ) self . __commitAndCloseEditor ( i1 ) self . model . swapItems ( i1 , i2 ) self . ui . curvesTable . setCurrentIndex ( i2 )
Move up action swap the selected row with the previous one
Move up action swap the selected row with the previous one
""" Move up action swap the selected row with the previous one"""
self