|
|
@ -32,7 +32,7 @@
|
|
|
|
# resp.body = f.read()
|
|
|
|
# resp.body = f.read()
|
|
|
|
from escpos.printer import Usb
|
|
|
|
from escpos.printer import Usb
|
|
|
|
import usb
|
|
|
|
import usb
|
|
|
|
import wonderwords
|
|
|
|
from wonderwords import RandomWord
|
|
|
|
from datetime import datetime
|
|
|
|
from datetime import datetime
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -95,6 +95,7 @@ class ThermalPrinter():
|
|
|
|
|
|
|
|
|
|
|
|
def print_wordsearch(self):
|
|
|
|
def print_wordsearch(self):
|
|
|
|
# words = ("gugu,gaga")
|
|
|
|
# words = ("gugu,gaga")
|
|
|
|
|
|
|
|
r = RandomWord()
|
|
|
|
words = r.random_words(10, include_parts_of_speech=["nouns", "verbs", "adjectives"])
|
|
|
|
words = r.random_words(10, include_parts_of_speech=["nouns", "verbs", "adjectives"])
|
|
|
|
w = WordSearch(words, 32, 32)
|
|
|
|
w = WordSearch(words, 32, 32)
|
|
|
|
|
|
|
|
|
|
|
|