MCPcopy
hub / github.com/pdfarranger/pdfarranger / run_get

Method run_get

pdfarranger/pageutils.py:366–375  ·  view source on GitHub ↗

Open the dialog and return the size value

(self)

Source from the content-addressed store, hash-verified

364 self.selection = selection
365
366 def run_get(self):
367 """ Open the dialog and return the size value """
368 result = self.run()
369 val = None
370 if result == Gtk.ResponseType.OK:
371 s = self.scale_stack
372 mode = 'SCALE' if s.selected_name == 'Relative' else self.combo.get_active_id()
373 val = s.selected_child.get_value(), mode
374 self.destroy()
375 return val
376
377
378def white_borders(model, selection, pdfqueue):

Callers 1

page_size_dialogMethod · 0.95

Calls 2

runMethod · 0.45
get_valueMethod · 0.45

Tested by

no test coverage detected