def __init__(self, *args, **kwargs):
        Barcode.__init__(self, *args, **kwargs)

        # These values below are hardcoded for a Type 12 44x44 data matrix
        self.row_modules = 44
        self.col_modules = 44
        self.row_regions = 2
        self.col_regions = 2
        self.cw_data = 144
        self.cw_ecc = 56
        self.row_usable_modules = self.row_modules - self.row_regions * 2
        self.col_usable_modules = self.col_modules - self.col_regions * 2
Example #2
0
    def __init__(self, *args, **kwargs):
        Barcode.__init__(self,*args, **kwargs)

        # These values below are hardcoded for a Type 12 44x44 data matrix
        self.row_modules = 44
        self.col_modules = 44
        self.row_regions = 2
        self.col_regions = 2
        self.cw_data = 144
        self.cw_ecc = 56
        self.row_usable_modules = self.row_modules - self.row_regions * 2
        self.col_usable_modules = self.col_modules - self.col_regions * 2
Example #3
0
    def __init__(self, value = "", **args):
        value = asNative(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

        Barcode.__init__(self, value)
Example #4
0
    def __init__(self, value = "", **args):
        value = asNative(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

        Barcode.__init__(self, value)
Example #5
0
 def annotate(self, x, y, text, fontName, fontSize, anchor='middle'):
     Barcode.annotate(self, x, y, text, fontName, fontSize, anchor='start')
Example #6
0
    def __init__(self, value='', **args):
        value = str(value) if isinstance(value, int) else asNative(value)
        for k, v in args.items():
            setattr(self, k, v)

        Barcode.__init__(self, value)
Example #7
0
 def annotate(self,x,y,text,fontName,fontSize,anchor='middle'):
     Barcode.annotate(self,x,y,text,fontName,fontSize,anchor='start')
Example #8
0
    def __init__(self, value='', **args):
        value = str(value) if isinstance(value,int) else asNative(value)
        for k, v in args.items():
            setattr(self, k, v)

        Barcode.__init__(self, value)
Example #9
0
 def annotate(self, x, y, text, fontName, fontSize, anchor="middle"):
     Barcode.annotate(self, x, y, text, fontName, fontSize, anchor="start")