Update 'print_single_mice.py'
This commit is contained in:
parent
6f2caf0d49
commit
eb5cca44c6
@ -4,6 +4,7 @@ import shimatta_label.label_image as li
|
|||||||
import shimatta_label.brother_ql_wrapper as ql_wrapper
|
import shimatta_label.brother_ql_wrapper as ql_wrapper
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
def print_label():
|
||||||
printer_model = 'QL-800'
|
printer_model = 'QL-800'
|
||||||
printer_connection = 'usb://0x04f9:0x209b'
|
printer_connection = 'usb://0x04f9:0x209b'
|
||||||
|
|
||||||
@ -23,3 +24,5 @@ label.put_text(heading, line2, line3)
|
|||||||
printer = ql_wrapper.BrotherQlPrinter(model=printer_model, printer_connection=printer_connection, label_format='12')
|
printer = ql_wrapper.BrotherQlPrinter(model=printer_model, printer_connection=printer_connection, label_format='12')
|
||||||
printer.print_image(label.get_pillow_image(), cut=True, rotation=270)
|
printer.print_image(label.get_pillow_image(), cut=True, rotation=270)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print_label()
|
Loading…
Reference in New Issue
Block a user