''

def move_layout(self, up=True):

    (names, order, active) = (self.names, self.order, self.active)
    row = self.table.selectionModel().currentIndex().row()
    row_new = row
    if up:
        row_new -= 1
    else:
        row_new += 1
    (order[row], order[row_new]) = (order[row_new], order[row])
    self.order = order
    self.table.model().set_data(order, active)
    index = self.table.model().index(row_new, 0)
    self.table.setCurrentIndex(index)
    self.table.setFocus()
    self.selection_changed(None, None)
