Update curr_screen.py

This commit is contained in:
chrys87 2016-08-25 10:42:34 +02:00 committed by GitHub
parent 7ee641e6be
commit 557dfb3f10

View File

@ -4,7 +4,7 @@ class command():
def __init__(self): def __init__(self):
pass pass
def run(self, environment): def run(self, environment):
if environment['screenData']['newContentText'].strip(" \t\n") == '': if environment['screenData']['newContentText'].strip() == '':
environment['runtime']['outputManager'].presentText(environment, "screen is empty", soundIcon='EmptyLine', interrupt=True) environment['runtime']['outputManager'].presentText(environment, "screen is empty", soundIcon='EmptyLine', interrupt=True)
else: else:
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'],interrupt=True) environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'],interrupt=True)