print wordsearch words
This commit is contained in:
parent
227cca06d4
commit
d6062c714e
@ -34,6 +34,7 @@ from escpos.printer import Usb
|
|||||||
import usb
|
import usb
|
||||||
from wonderwords import RandomWord
|
from wonderwords import RandomWord
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
import textwrap
|
||||||
|
|
||||||
|
|
||||||
from .sudoku_generator import *
|
from .sudoku_generator import *
|
||||||
@ -103,6 +104,11 @@ class ThermalPrinter():
|
|||||||
self.p.set(align="center")
|
self.p.set(align="center")
|
||||||
self.p.text(''.join(x) + "\n")
|
self.p.text(''.join(x) + "\n")
|
||||||
|
|
||||||
|
wwords = textwrap.wrap(' '.join(words), 32)
|
||||||
|
for word in wwords:
|
||||||
|
self.p.set(align="left")
|
||||||
|
self.p.text(word)
|
||||||
|
|
||||||
# Defaults.NOUNS: Represents a list of nouns
|
# Defaults.NOUNS: Represents a list of nouns
|
||||||
# Defaults.VERBS: Represents a list of verbs
|
# Defaults.VERBS: Represents a list of verbs
|
||||||
# Defaults.ADJECTIVES: Represents a list of adjectives
|
# Defaults.ADJECTIVES: Represents a list of adjectives
|
||||||
|
Loading…
Reference in New Issue
Block a user