src/reportlab/graphics/barcode/common.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3966 d3d2b5e09c88
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   306     def __init__(self, value='', **args):
   306     def __init__(self, value='', **args):
   307 
   307 
   308         if type(value) == type(1):
   308         if type(value) == type(1):
   309             value = str(value)
   309             value = str(value)
   310 
   310 
   311         for (k, v) in list(args.items()):
   311         for k, v in args.items():
   312             setattr(self, k, v)
   312             setattr(self, k, v)
   313 
   313 
   314         if self.quiet:
   314         if self.quiet:
   315             if self.lquiet is None:
   315             if self.lquiet is None:
   316                 self.lquiet = min(inch * 0.25, self.barWidth * 10.0)
   316                 self.lquiet = min(inch * 0.25, self.barWidth * 10.0)
   431     def __init__(self, value="", **args):
   431     def __init__(self, value="", **args):
   432 
   432 
   433         if type(value) == type(1):
   433         if type(value) == type(1):
   434             value = str(value)
   434             value = str(value)
   435 
   435 
   436         for (k, v) in list(args.items()):
   436         for k, v in args.items():
   437             setattr(self, k, v)
   437             setattr(self, k, v)
   438 
   438 
   439         if self.quiet:
   439         if self.quiet:
   440             if self.lquiet is None:
   440             if self.lquiet is None:
   441                 self.lquiet = max(inch * 0.25, self.barWidth * 10.0)
   441                 self.lquiet = max(inch * 0.25, self.barWidth * 10.0)
   567 
   567 
   568     def __init__(self, value='', **args):
   568     def __init__(self, value='', **args):
   569         if type(value) == type(1):
   569         if type(value) == type(1):
   570             value = str(value)
   570             value = str(value)
   571 
   571 
   572         for (k, v) in list(args.items()):
   572         for k, v in args.items():
   573             setattr(self, k, v)
   573             setattr(self, k, v)
   574 
   574 
   575         if self.quiet:
   575         if self.quiet:
   576             if self.lquiet is None:
   576             if self.lquiet is None:
   577                 self.lquiet = min(inch * 0.25, self.barWidth * 10.0)
   577                 self.lquiet = min(inch * 0.25, self.barWidth * 10.0)
   687     rquiet = None
   687     rquiet = None
   688     def __init__(self, value='', **args):
   688     def __init__(self, value='', **args):
   689         if type(value) == type(1):
   689         if type(value) == type(1):
   690             value = str(value)
   690             value = str(value)
   691 
   691 
   692         for (k, v) in list(args.items()):
   692         for k, v in args.items():
   693             setattr(self, k, v)
   693             setattr(self, k, v)
   694 
   694 
   695         if self.quiet:
   695         if self.quiet:
   696             if self.lquiet is None:
   696             if self.lquiet is None:
   697                 self.lquiet = min(inch * 0.25, self.barWidth * 10.0)
   697                 self.lquiet = min(inch * 0.25, self.barWidth * 10.0)