diff --git a/application/thermal_print.py b/application/thermal_print.py index 98841af..ed84592 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -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