MCPcopy Create free account
hub / github.com/scanny/python-pptx / Mm

Class Mm

src/pptx/util.py:89–94  ·  view source on GitHub ↗

Convenience constructor for length in millimeters.

Source from the content-addressed store, hash-verified

87
88
89class Mm(Length):
90 """Convenience constructor for length in millimeters."""
91
92 def __new__(cls, mm: float):
93 emu = int(mm * Length._EMUS_PER_MM)
94 return Length.__new__(cls, emu)
95
96
97class Pt(Length):

Calls

no outgoing calls