18 lines
718 B
Python
Raw Normal View History

2016-07-08 13:26:31 +02:00
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
2016-07-09 01:01:00 +02:00
environment['runtime']['speechDriver'].cancel()
if environment['screenData']['newContentText'].replace(" ","") == '':
environment['runtime']['speechDriver'].speak("empty screen")
else:
print(environment['screenData']['newCursor'])
print(environment['screenData']['newContentText'].split('\n'))
environment['runtime']['speechDriver'].speak(environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']])
2016-07-08 14:29:35 +02:00
def setCallback(self, callback):
2016-07-08 13:26:31 +02:00
pass
def shutdown(self):
pass