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
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)
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)
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)