From 0887641f2f31979bf743af0c4cf69d73ef40e6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 27 Dec 2021 20:27:27 +0100 Subject: [PATCH] Write printer connection and model directly to script --- generate_label_example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_label_example.py b/generate_label_example.py index e13844e..2dfd3a5 100644 --- a/generate_label_example.py +++ b/generate_label_example.py @@ -7,7 +7,7 @@ label.put_text('100n 10%% biggggg', 'X7R 50V', 'AVX') ff = label.save() print('Created Tempfile: ', ff) try: - printer = ql_wrapper.BrotherQlPrinter() + printer = ql_wrapper.BrotherQlPrinter(printer_connection='usb://0x04f9:0x209b', model='QL-800') printer.print_image(ff, cut=False) printer.print_image(ff, cut=False) printer.print_image(ff, cut=True)