From dc5f7033cead4b3dabfeb1717f85abd1f6207f7e Mon Sep 17 00:00:00 2001 From: samerbam Date: Wed, 23 Aug 2023 12:31:51 -0400 Subject: [PATCH] trying --- application/thermal_print.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/thermal_print.py b/application/thermal_print.py index 23f7111..23a8716 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -64,6 +64,7 @@ class ThermalPrinter(): # pass #TODO: add other greetings? def print_todos(self, todos=[{"time": "1:00pm to 2:00pm", "text": "Read a book"}]): + self.p.set(align="left") for x in self._parse_todos(todos): # print(x) this_line_width = len(x[0])+len(x[1]) @@ -100,6 +101,7 @@ class ThermalPrinter(): for l in output: print(l) self.p.text(l) + self.p.set(align="left") # self.p.set(align="right") # self.p.textln(x[1]) @@ -173,7 +175,7 @@ class ThermalPrinter(): print('end 1') print('start 2') - # self.print_todos() + self.print_todos() print('end 2') print('start 3')