def __init__(self, value='', **args): if type(value) is type(1): value = str(value) for (k, v) in args.items(): setattr(self, k, v) if self.quiet: if self.lquiet is None: self.lquiet = max(inch * 0.25, self.barWidth * 10.0) self.rquiet = max(inch * 0.25, self.barWidth * 10.0) else: self.lquiet = self.rquiet = 0.0 MultiWidthBarcode.__init__(self, value)
def __init__(self, value='', **args): if type(value) is type(1): value = str(value) for (k, v) in args.iteritems(): setattr(self, k, v) if self.quiet: if self.lquiet is None: self.lquiet = max(inch * 0.25, self.barWidth * 10.0) self.rquiet = max(inch * 0.25, self.barWidth * 10.0) else: self.lquiet = self.rquiet = 0.0 MultiWidthBarcode.__init__(self, value)
def __init__(self, value='', **args): self.xdim = inch * 0.0075 self.lquiet = None self.rquiet = None self.quiet = 1 self.height = None if type(value) is type(1): value = str(value) for (k, v) in args.items(): setattr(self, k, v) if self.quiet: if self.lquiet is None: self.lquiet = max(inch * 0.25, self.xdim * 10.0) self.rquiet = max(inch * 0.25, self.xdim * 10.0) else: self.lquiet = self.rquiet = 0.0 MultiWidthBarcode.__init__(self, value)