generate_storage_label.py 397 B

1234567891011
  1. #!/bin/python
  2. import shimatta_label.label_image as li
  3. import shimatta_label.brother_ql_wrapper as ql_wrapper
  4. from shimatta_label.storage_label import StorageLabel
  5. label = StorageLabel()
  6. label.put_content('[stor_uuid]1c5cf30a-829c-4716-abfc-9ae2d4d493b2', '/Test1')
  7. printer = ql_wrapper.BrotherQlPrinter(label_format='29x90')
  8. printer.print_image(label.get_pillow_image(), rotation=90, cut=True)