Пример #1
0
    def load_machine(self, file_path, file_name):
        if len(file_name) != 0:
            full_path = os.path.join(file_path, file_name[0])
            io_success = XmlParser.load_machine(full_path, self.tm_gui,
                                                self.tape_gui)

            if io_success:
                self.curr_machine_name = file_name[0]
                self.close_menus(None, None)
                self._popup.dismiss()
            else:
                self.tm_gui.create_new_machine()
Пример #2
0
    def load_machine_uri(self, full_path):
        io_success = XmlParser.load_machine(full_path, self.tm_gui,
                                            self.tape_gui)

        if not io_success:
            self.tm_gui.create_new_machine()