def edit_enabled(self): edit = ListEdit(self.dialog, self.ai["enabledCommands"]) ok = edit.dialog.exec() if ok == 1: self.ai["enabledCommands"] = edit.get_list() self.update()
def edit_available(self): edit = ListEdit(self.dialog, self.ai["availableMissions"]) ok = edit.dialog.exec() if ok == 1: self.ai["availableMissions"] = edit.get_list() self.update()
def edit_completed(self): edit = ListEdit(self.dialog, self.ai["completedMissions"]) ok = edit.dialog.exec() if ok == 1: self.ai["completedMissions"] = edit.get_list() self.update()
def edit_capabilities(self): edit = ListEdit(self.dialog, self.ship_upgrades["capabilities"]) ok = edit.dialog.exec() if ok == 1: self.ship_upgrades["capabilities"] = edit.get_list() self.update()