keyboard stuff

This commit is contained in:
chrys 2016-07-10 19:13:11 +02:00
parent 79f8a3bf1e
commit 28a3da7e52
7 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
environment['runtime']['speechDriver'].cancel()
if environment['screenData']['newContentText'].replace(" ","") == '':
environment['runtime']['speechDriver'].speak("empty screen")
else:
environment['runtime']['speechDriver'].speak(environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']])
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -0,0 +1,11 @@
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
environment['runtime']['speechDriver'].cancel()
def setCallback(self, callback):
pass
def shutdown(self):
pass