16 lines
431 B
Python
16 lines
431 B
Python
|
import shimatta_label.label_image as li
|
||
|
import shimatta_label.brother_ql_wrapper as ql_wrapper
|
||
|
import os
|
||
|
|
||
|
label = li.MiceToiletLabel()
|
||
|
label.put_text('100n 10%% biggggg', 'X7R 50V', 'AVX')
|
||
|
ff = label.save()
|
||
|
print('Created Tempfile: ', ff)
|
||
|
try:
|
||
|
printer = ql_wrapper.BrotherQlPrinter()
|
||
|
printer.print_image(ff, cut=False)
|
||
|
printer.print_image(ff, cut=False)
|
||
|
printer.print_image(ff, cut=True)
|
||
|
finally:
|
||
|
os.remove(ff)
|