''

def delete_layout(self):

    (names, order, active) = (self.names, self.order, self.order)
    name = from_qvariant(self.table.selectionModel().currentIndex().data(), to_text_string)
    if (name in names):
        index = names.index(name)
    if (index != (-1)):
        order.remove(name)
        names[index] = None
        if (name in active):
            active.remove(name)
        (self.names, self.order, self.active) = (names, order, active)
        self.table.model().set_data(order, active)
        index = self.table.model().index(0, 0)
        self.table.setCurrentIndex(index)
        self.table.setFocus()
        self.selection_changed(None, None)
        if (len(order) == 0):
            self.button_move_up.setDisabled(True)
            self.button_move_down.setDisabled(True)
            self.button_delete.setDisabled(True)
