add wsearch dividers
This commit is contained in:
parent
d6062c714e
commit
d7046a9471
@ -100,10 +100,12 @@ class ThermalPrinter():
|
|||||||
words = r.random_words(15, include_parts_of_speech=["nouns", "verbs", "adjectives"])
|
words = r.random_words(15, include_parts_of_speech=["nouns", "verbs", "adjectives"])
|
||||||
w = WordSearch(','.join(words), 32, 16)
|
w = WordSearch(','.join(words), 32, 16)
|
||||||
|
|
||||||
|
self.p.text("Word Search: \n")
|
||||||
for x in w.grid:
|
for x in w.grid:
|
||||||
self.p.set(align="center")
|
self.p.set(align="center")
|
||||||
self.p.text(''.join(x) + "\n")
|
self.p.text(''.join(x) + "\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:
|
||||||
self.p.set(align="left")
|
self.p.set(align="left")
|
||||||
|
Loading…
Reference in New Issue
Block a user