Exemplo n.º 1
0
    def __init__(self, value='', **args):
        self.sbarheight = inch * 0.050
        self.fbarheight = inch * 0.125
        self.barwide = inch * 0.018
        self.spacewide = inch * 0.0275
       
        for (k, v) in args.items():
            setattr(self, k, v)

        Barcode.__init__(self, value)
Exemplo n.º 2
0
    def __init__(self, value="", **args):
        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

        Barcode.__init__(self, value)
Exemplo n.º 3
0
    def __init__(self, value = "", **args):
        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

        Barcode.__init__(self, value)
Exemplo n.º 4
0
    def __init__(self, value='', **args):
        self.barwidth = inch * (1.0/32.0)
        self.barspace = inch * (1.0/16.0)
        self.height = inch * (5.0/8.0)
        self.rquiet = inch * (0.25)
        self.lquiet = inch * (15.0/32.0)
        self.quiet = 0

        for (k, v) in args.items():
            setattr(self, k, v)

        Barcode.__init__(self, value)
Exemplo n.º 5
0
    def __init__(self, value = "", **args):
        self.xdim = inch * 0.0075
        self.lquiet = None
        self.rquiet = None
        self.quiet = 1
        self.gap = None
        self.height = None
        self.ratio = 2.2
        self.checksum = 0
        self.bearers = 0.0

        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
                                                         
        Barcode.__init__(self, value)
Exemplo n.º 6
0
    def __init__(self, value = "", **args):
        self.xdim = inch * 0.0075
        self.lquiet = None
        self.rquiet = None
        self.quiet = 1
        self.gap = None
        self.height = None
        self.ratio = 2.2
        self.checksum = 0
        self.bearers = 0.0

        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
                                                         
        Barcode.__init__(self, value)
Exemplo n.º 7
0
    def __init__(self, value='', **args):

        for (k, v) in args.items():
            setattr(self, k, v)

        Barcode.__init__(self, value)
Exemplo n.º 8
0
    def __init__(self, value='', **args):
        for (k, v) in args.items():
            setattr(self, k, v)

        Barcode.__init__(self, value)