Example #1
0
 def perform(self, event):
     items = Machine.assembler_list
     dlg = ListReorderDialog(event.task.window.control, Machine.assembler_list, lambda a:a['name'], prompt_for_assembler, "Manage Assemblers")
     if dlg.ShowModal() == wx.ID_OK:
         asms = dlg.get_items()
         Machine.set_assembler_list(event.task, asms)
         self.active_editor.machine.verify_current_assembler()
     dlg.Destroy()
Example #2
0
 def perform(self, event):
     items = Machine.assembler_list
     dlg = ListReorderDialog(event.task.window.control,
                             Machine.assembler_list, lambda a: a['name'],
                             prompt_for_assembler, "Manage Assemblers")
     if dlg.ShowModal() == wx.ID_OK:
         asms = dlg.get_items()
         Machine.set_assembler_list(event.task, asms)
         self.viewer.machine.verify_current_assembler()
     dlg.Destroy()
Example #3
0
 def perform(self, event):
     dlg = ListReorderDialog(event.task.window.control, Machine.get_user_defined_emulator_list(), lambda a:a['name'], prompt_for_emulator, "Manage Emulators")
     if dlg.ShowModal() == wx.ID_OK:
         emus = dlg.get_items()
         Machine.set_user_defined_emulator_list(event.task, emus)
     dlg.Destroy()