this is an annoying hack that I hope I dont have to keep

This commit is contained in:
samerbam 2023-08-23 10:16:55 -04:00
parent b455a9e029
commit 2a71d15d0b

View File

@ -72,7 +72,9 @@ class ThermalPrinter():
self.p.set(align="left") self.p.set(align="left")
self.p.text(x[0]) self.p.text(x[0])
if this_line_width < 32: if this_line_width < 32:
self.p.text("" + " "*(32-this_line_width)) for s in range((32-this_line_width)):
self.p.text(" ")
# self.p.text("" + " "*(32-this_line_width))
else: else:
# self.p.text(" ") # self.p.text(" ")
todo_text_max_len = 32-(len(x[0])+1) todo_text_max_len = 32-(len(x[0])+1)
@ -80,7 +82,9 @@ class ThermalPrinter():
# t_text = textwrap.wrap() # t_text = textwrap.wrap()
for t in todo_text: for t in todo_text:
self.p.text("" + " "*(len(x[0])+1) ) # self.p.text("" + " "*(len(x[0])+1) )
for s in range((len(x[0])+1)):
self.p.text(" ")
self.p.text(t + "\n") self.p.text(t + "\n")