Convenience value class for specifying a length in points.
| 103 | |
| 104 | |
| 105 | class 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 | |
| 113 | class Twips(Length): |
no outgoing calls
no test coverage detected