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