Esempio 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)
Esempio 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)
Esempio 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
     )