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

Class Pt

src/docx/shared.py:105–110  ·  view source on GitHub ↗

Convenience value class for specifying a length in points.

Source from the content-addressed store, hash-verified

103
104
105class Pt(Length):
106 """Convenience value class for specifying a length in points."""
107
108 def __new__(cls, points: float):
109 emu = int(points * Length._EMUS_PER_PT)
110 return Length.__new__(cls, emu)
111
112
113class Twips(Length):

Calls

no outgoing calls

Tested by

no test coverage detected