Convenience constructor for length in millimeters.
| 87 | |
| 88 | |
| 89 | class 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 | |
| 97 | class Pt(Length): |
no outgoing calls