add intial toggle module commands
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
#!/bin/python
|
||||
|
||||
class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def run(self, environment):
|
||||
environment['braille']['enabled'] = not environment['braille']['enabled']
|
||||
if environment['braille']['enabled']:
|
||||
environment['runtime']['outputManager'].presentText(environment, "braille enabled")
|
||||
else:
|
||||
environment['runtime']['outputManager'].presentText(environment, "braille disabled")
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
def shutdown(self):
|
||||
pass
|
16
src/fenrir-package/commands/commands/toggle_sound_enable.py
Normal file
16
src/fenrir-package/commands/commands/toggle_sound_enable.py
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/python
|
||||
|
||||
class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def run(self, environment):
|
||||
environment['sound']['enabled'] = not environment['sound']['enabled']
|
||||
if environment['sound']['enabled']:
|
||||
environment['runtime']['outputManager'].presentText(environment, "sound enabled")
|
||||
else:
|
||||
environment['runtime']['outputManager'].presentText(environment, "sound disabled")
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
def shutdown(self):
|
||||
pass
|
16
src/fenrir-package/commands/commands/toggle_speech_enable.py
Normal file
16
src/fenrir-package/commands/commands/toggle_speech_enable.py
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/python
|
||||
|
||||
class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def run(self, environment):
|
||||
environment['speech']['enabled'] = not environment['speech']['enabled']
|
||||
if environment['speech']['enabled']:
|
||||
environment['runtime']['outputManager'].presentText(environment, "speech enabled")
|
||||
else:
|
||||
environment['runtime']['outputManager'].presentText(environment, "speech disabled")
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
def shutdown(self):
|
||||
pass
|
Reference in New Issue
Block a user