new formula
This commit is contained in:
parent
9e5c980737
commit
477f7a378b
@ -94,7 +94,12 @@ class ThermalPrinter():
|
|||||||
# for s in range((len(x[0])+1)):
|
# for s in range((len(x[0])+1)):
|
||||||
# self.p.text(" ")
|
# self.p.text(" ")
|
||||||
|
|
||||||
self.p.text( (" "*(32-(len(x[0])+1)))+t+"\n" )
|
# self.p.text( (" "*(32-(len(x[0]))))+t+"\n" )
|
||||||
|
self.p.text(' '*(32-len(x[0])-len(t))+t+"\n" )
|
||||||
|
|
||||||
|
|
||||||
|
#32-len(x[0])len(text)
|
||||||
|
|
||||||
|
|
||||||
# self.p.text(t + "\n")
|
# self.p.text(t + "\n")
|
||||||
|
|
||||||
@ -197,7 +202,7 @@ class ThermalPrinter():
|
|||||||
def _parse_todos(self, data):
|
def _parse_todos(self, data):
|
||||||
out = []
|
out = []
|
||||||
for x in data:
|
for x in data:
|
||||||
out.append(["O " + x["time"], x["text"]])
|
out.append(["O " + x["time"] + " ", x["text"]])
|
||||||
return out
|
return out
|
||||||
|
|
||||||
#Return: ["□ 1:00pm to 2:00pm", "Read a book"]
|
#Return: ["□ 1:00pm to 2:00pm", "Read a book"]
|
||||||
|
Loading…
Reference in New Issue
Block a user