diff --git a/application/thermal_print.py b/application/thermal_print.py index 426a0ae..e0f2943 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -32,7 +32,7 @@ # resp.body = f.read() from escpos.printer import Usb import usb -import wonderwords +from wonderwords import RandomWord from datetime import datetime @@ -95,6 +95,7 @@ class ThermalPrinter(): def print_wordsearch(self): # words = ("gugu,gaga") + r = RandomWord() words = r.random_words(10, include_parts_of_speech=["nouns", "verbs", "adjectives"]) w = WordSearch(words, 32, 32)