Ejemplo n.º 1
0
def _decode_print_scale(data):
    style, x, y, scale = unpack("H3f", data)

    if not PrintScaleStyle.is_known(style):
        warnings.warn("Unknown print scale style (%s)" % style)

    return PrintScale(style, x, y, scale)
Ejemplo n.º 2
0
def _decode_print_scale(data):
    style, x, y, scale = unpack("H3f", data)

    if not PrintScaleStyle.is_known(style):
        warnings.warn("Unknown print scale style (%s)" % style)

    return PrintScale(style, x, y, scale)
Ejemplo n.º 3
0
 def __repr__(self):
     return "PrintScale(style=%r %s, x=%s, y=%s, scale=%s)" % (
         self.style, PrintScaleStyle.name_of(self.style),
         self.x, self.y, self.scale
     )