actually use wonderwords correctly

This commit is contained in:
samerbam 2023-08-22 22:52:02 -04:00
parent 8c636c213e
commit 1a76b1b7f5

View File

@ -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)