From bd71727025a036befe85cc5e0b172895a2fe875b Mon Sep 17 00:00:00 2001 From: Bob Clough Date: Sun, 29 Sep 2024 13:11:29 +0100 Subject: [PATCH] wip: add auto-cutting to end of print command --- src/labelle/lib/devices/dymo_labeler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/labelle/lib/devices/dymo_labeler.py b/src/labelle/lib/devices/dymo_labeler.py index 066309f6..e2fb5ccf 100755 --- a/src/labelle/lib/devices/dymo_labeler.py +++ b/src/labelle/lib/devices/dymo_labeler.py @@ -222,6 +222,8 @@ def print_label(self, lines: list[list[int]]): self._raw_print_label(lines[0 : self._maxLines]) del lines[0 : self._maxLines] self._raw_print_label(lines) + self._cut() + self._send_command() def _raw_print_label(self, lines: list[list[int]]): """Print the label described by lines (HLF).""" @@ -240,7 +242,7 @@ class DymoLabeler: LABELER_DISTANCE_BETWEEN_PRINT_HEAD_AND_CUTTER_MM = 8.1 LABELER_PRINT_HEAD_HEIGHT_MM = 8.2 - SUPPORTED_TAPE_SIZES_MM = (19, 12, 9, 6) + SUPPORTED_TAPE_SIZES_MM = (24, 19, 12, 9, 6) DEFAULT_TAPE_SIZE_MM = 12 def __init__(