fix alignment

This commit is contained in:
samerbam 2023-08-23 09:09:31 -04:00
parent 0301e35c08
commit 4640a4061d

View File

@ -107,13 +107,14 @@ class ThermalPrinter():
w = WordSearch(','.join(words), 32, 16) w = WordSearch(','.join(words), 32, 16)
self.p.set(align="left") self.p.set(align="left")
self.p.text("Word Search:") self.p.text("Word Search:" + "\n")
self.p.text("\n") self.p.text("\n\n")
self.p.set(align="center") self.p.set(align="center")
for x in w.grid: for x in w.grid:
self.p.text(''.join(x) + "\n") self.p.text(''.join(x) + "\n")
self.p.set(align="left")
self.p.text("\nWords: \n") self.p.text("\nWords: \n")
wwords = textwrap.wrap(' '.join(words), 32) wwords = textwrap.wrap(' '.join(words), 32)
for word in wwords: for word in wwords: