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

Class Pt

src/pptx/util.py:97–102  ·  view source on GitHub ↗

Convenience value class for specifying a length in points.

Source from the content-addressed store, hash-verified

95
96
97class Pt(Length):
98 """Convenience value class for specifying a length in points."""
99
100 def __new__(cls, points: float):
101 emu = int(points * Length._EMUS_PER_PT)
102 return Length.__new__(cls, emu)
103
104
105_T = TypeVar("_T")

Calls

no outgoing calls

Tested by 1