|
|
@ -83,11 +83,11 @@ class ThermalPrinter():
|
|
|
|
# self.p.text("" + " "*(32-this_line_width))
|
|
|
|
# self.p.text("" + " "*(32-this_line_width))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# self.p.text(" ")
|
|
|
|
# self.p.text(" ")
|
|
|
|
todo_text_max_len = 32-(len(x[0]))
|
|
|
|
todo_text_max_len = 32-(len(x[0])+1)
|
|
|
|
todo_text = textwrap.wrap(x[1], todo_text_max_len)
|
|
|
|
todo_text = textwrap.wrap(x[1], todo_text_max_len)
|
|
|
|
# t_text = textwrap.wrap()
|
|
|
|
# t_text = textwrap.wrap()
|
|
|
|
|
|
|
|
fele = todo_text.pop(0)
|
|
|
|
self.p.text(" " + todo_text.pop(0))
|
|
|
|
self.p.text(" "*(todo_text_max_len-len(fele)) + fele)
|
|
|
|
|
|
|
|
|
|
|
|
todo_text = textwrap.wrap(' '.join(todo_text), 32)
|
|
|
|
todo_text = textwrap.wrap(' '.join(todo_text), 32)
|
|
|
|
for t in todo_text:
|
|
|
|
for t in todo_text:
|
|
|
|