Convenience constructor for length in inches, e.g. ``width = Inches(0.5)``.
| 71 | |
| 72 | |
| 73 | class Inches(Length): |
| 74 | """Convenience constructor for length in inches, e.g. ``width = Inches(0.5)``.""" |
| 75 | |
| 76 | def __new__(cls, inches: float): |
| 77 | emu = int(inches * Length._EMUS_PER_INCH) |
| 78 | return Length.__new__(cls, emu) |
| 79 | |
| 80 | |
| 81 | class Cm(Length): |
no outgoing calls
searching dependent graphs…