add wsearch dividers

This commit is contained in:
samerbam 2023-08-22 23:20:34 -04:00
parent d6062c714e
commit d7046a9471

View File

@ -100,10 +100,12 @@ class ThermalPrinter():
words = r.random_words(15, include_parts_of_speech=["nouns", "verbs", "adjectives"])
w = WordSearch(','.join(words), 32, 16)
self.p.text("Word Search: \n")
for x in w.grid:
self.p.set(align="center")
self.p.text(''.join(x) + "\n")
self.p.text("\nWords: \n")
wwords = textwrap.wrap(' '.join(words), 32)
for word in wwords:
self.p.set(align="left")