From 899f7c4ecd611054f9ea874137a5b0ab75f6c2c9 Mon Sep 17 00:00:00 2001 From: Christoffer Viken Date: Sat, 25 Mar 2017 16:02:29 +0000 Subject: [PATCH] Text fixes --- printer_helpers.py | 1 - text_interface/printermenu.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/printer_helpers.py b/printer_helpers.py index 2c44edf..c3eb224 100644 --- a/printer_helpers.py +++ b/printer_helpers.py @@ -36,7 +36,6 @@ def print_name_label(text, margin=10, rotate=False, label_type="62", printer_typ height = th+2*margin else: while tw + 2*margin > width or th + 2*margin > height: - print(fs) font = ImageFont.truetype(font_path, fs) tw, th = font.getsize(text) fs -= 1 diff --git a/text_interface/printermenu.py b/text_interface/printermenu.py index 5ce0b75..449db46 100644 --- a/text_interface/printermenu.py +++ b/text_interface/printermenu.py @@ -6,7 +6,7 @@ import conf class PrintLabelMenu(Menu): def __init__(self): - Menu.__init__(self, 'Print bar code', uses_db=True) + Menu.__init__(self, 'Print a label', uses_db=True) self.help_text = ''' Prints out a product bar code on the printer