class label:
def __init__(self, length, width=336, landscape=False):
assert(width == 336 or width == 720)
class label:
def __init__(self, length, width=336, landscape=False):
assert(width == 336 or width == 720)
self.fontfile = '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf'
self.im = Image.new("1", (width, length), "white")
if self.landscape:
self.fontfile = '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf'
self.im = Image.new("1", (width, length), "white")
if self.landscape: