|
|
|
@ -27,7 +27,7 @@ def whoosh(previous_module, current_module, module):
|
|
|
|
|
textContent = textFile.read()
|
|
|
|
|
if textContent != "": #use content of text file to define text variable
|
|
|
|
|
textIn = textContent
|
|
|
|
|
text = text.replace("\n", "")
|
|
|
|
|
textIn = textIn.replace("\n", "")
|
|
|
|
|
else: #if text file is emptpy: randomly pick a default text (in case keyboard module is not used)
|
|
|
|
|
defaultText = ["Modular Matter", "MODULAR MATTER", "Rewire your prints!", "REWIRE YOUR PRINTS!"]
|
|
|
|
|
textIn = choice(defaultText)
|
|
|
|
|