clean up some .set() calls
This commit is contained in:
parent
d7046a9471
commit
2d9146b121
@ -100,16 +100,21 @@ 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")
|
||||
self.p.set(align="left", invert=True)
|
||||
self.p.text("Word Search:")
|
||||
self.p.text("\n")
|
||||
self.p.set(align="center", invert=False)
|
||||
|
||||
for x in w.grid:
|
||||
self.p.set(align="center")
|
||||
self.p.text(''.join(x) + "\n")
|
||||
|
||||
self.p.set(align="left", invert=True)
|
||||
self.p.text("\nWords: \n")
|
||||
self.p.set(align="left", invert=False)
|
||||
wwords = textwrap.wrap(' '.join(words), 32)
|
||||
for word in wwords:
|
||||
self.p.set(align="left")
|
||||
self.p.text(word)
|
||||
# self.p.set(align="left")
|
||||
self.p.text(word + "\n")
|
||||
|
||||
# Defaults.NOUNS: Represents a list of nouns
|
||||
# Defaults.VERBS: Represents a list of verbs
|
||||
|
Loading…
Reference in New Issue
Block a user