gws.tools.units

gws.tools.units.scale2res(x)[source]
gws.tools.units.res2scale(x)[source]
gws.tools.units.mm2in(x)[source]
gws.tools.units.m2in(x)[source]
gws.tools.units.in2mm(x)[source]
gws.tools.units.in2m(x)[source]
gws.tools.units.in2px(x, ppi)[source]
gws.tools.units.mm2px(x, ppi)[source]
gws.tools.units.mm2px_f(x, ppi)[source]
gws.tools.units.px2mm(x, ppi)[source]
gws.tools.units.point_mm2px(xy, ppi)[source]
gws.tools.units.point_mm2px_f(xy, ppi)[source]
gws.tools.units.point_px2mm(xy, ppi)[source]
gws.tools.units.mm2pt(x)[source]
gws.tools.units.pt2mm(x)[source]
gws.tools.units.parse(s: str, units: List[T] = [], default=None) → Tuple[float, str][source]
gws.tools.units.parse_duration(s)[source]