Convenience constructor for length in twips, e.g. ``width = Twips(42)``. A twip is a twentieth of a point, 635 EMU.
| 111 | |
| 112 | |
| 113 | class Twips(Length): |
| 114 | """Convenience constructor for length in twips, e.g. ``width = Twips(42)``. |
| 115 | |
| 116 | A twip is a twentieth of a point, 635 EMU. |
| 117 | """ |
| 118 | |
| 119 | def __new__(cls, twips: float): |
| 120 | emu = int(twips * Length._EMUS_PER_TWIP) |
| 121 | return Length.__new__(cls, emu) |
| 122 | |
| 123 | |
| 124 | class RGBColor(Tuple[int, int, int]): |
no outgoing calls
searching dependent graphs…