From 1a76b1b7f5ee00c9918f835cd86f5815caa6948a Mon Sep 17 00:00:00 2001 From: samerbam Date: Tue, 22 Aug 2023 22:52:02 -0400 Subject: [PATCH] actually use wonderwords correctly --- application/thermal_print.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)