MCPcopy Index your code
hub / github.com/python-openxml/python-docx / Inches

Class Inches

src/docx/shared.py:73–78  ·  view source on GitHub ↗

Convenience constructor for length in inches, e.g. ``width = Inches(0.5)``.

Source from the content-addressed store, hash-verified

71
72
73class Inches(Length):
74 """Convenience constructor for length in inches, e.g. ``width = Inches(0.5)``."""
75
76 def __new__(cls, inches: float):
77 emu = int(inches * Length._EMUS_PER_INCH)
78 return Length.__new__(cls, emu)
79
80
81class Cm(Length):

Calls

no outgoing calls

Tested by 2

it_can_add_a_columnMethod · 0.72
it_can_add_a_tableMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…