示例#1
0
 def show_dialog(self):
     value = prompt_for_dec(self.editor.control,
                            "Skip Boot Frames (decimal, use $ for hex)",
                            "Skip Boot Frames")
     if value is not None:
         print(f"emu_boot_skip_frames: {value}")
         self.editor.document.skip_frames_on_boot = value
示例#2
0
 def perform(self, event):
     v = self.viewer
     val = prompt_for_dec(v.control, 'Enter new %s' % v.zoom_text, 'Set Zoom', v.zoom)
     if val is not None and val > 0:
         v.set_zoom(val)
示例#3
0
 def perform(self, event):
     v = self.viewer
     val = prompt_for_dec(v.control, 'Enter new %s' % v.width_text, 'Set Width', v.width)
     if val is not None and val > 0:
         v.set_width(val)
示例#4
0
 def perform(self, action_key):
     v = self.viewer
     val = dialogs.prompt_for_dec(v.control, 'Enter new %s' % v.width_text, 'Set Width', v.width)
     if val is not None and val > 0:
         v.set_width(val)
示例#5
0
 def perform(self, event):
     v = self.viewer
     val = prompt_for_dec(v.control, 'Enter new %s' % v.zoom_text,
                          'Set Zoom', v.zoom)
     if val is not None and val > 0:
         v.set_zoom(val)
示例#6
0
 def perform(self, event):
     v = self.viewer
     val = prompt_for_dec(v.control, 'Enter new %s' % v.width_text,
                          'Set Width', v.width)
     if val is not None and val > 0:
         v.set_width(val)
示例#7
0
 def perform(self, action_key):
     v = self.viewer
     val = dialogs.prompt_for_dec(v.control, 'Enter new %s' % v.width_text, 'Set Width', v.width)
     if val is not None and val > 0:
         v.set_width(val)