MCPcopy
hub / github.com/pdfarranger/pdfarranger / get_value

Method get_value

pdfarranger/pageutils.py:246–251  ·  view source on GitHub ↗

Get entry size in points or mm

(self, unit=Gtk.Unit.POINTS)

Source from the content-addressed store, hash-verified

244 self.height_entry.set_value(size[1])
245
246 def get_value(self, unit=Gtk.Unit.POINTS):
247 """Get entry size in points or mm"""
248 size = [self.width_entry.get_value(), self.height_entry.get_value()]
249 if unit == Gtk.Unit.POINTS:
250 size = [s * 72 / 25.4 for s in size]
251 return size
252
253
254class _CropHideWidget(Gtk.Frame):

Callers 15

orientation_clickedMethod · 0.95
__get_action_listMethod · 0.45
scaleFunction · 0.45
__outputMethod · 0.45
get_valueMethod · 0.45
width_changedMethod · 0.45
height_changedMethod · 0.45
__set_valueMethod · 0.45
get_valMethod · 0.45
__init__Method · 0.45
run_getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected