Updates to documentation. A few tidying up changes.
This commit is contained in:
@ -20,22 +20,15 @@ class command:
|
||||
pass
|
||||
|
||||
def get_description(self):
|
||||
return _("presents the date")
|
||||
return _("Test mc search functionality")
|
||||
|
||||
def run(self):
|
||||
date_format = self.env["runtime"]["SettingsManager"].get_setting(
|
||||
"general", "date_format"
|
||||
)
|
||||
|
||||
# get the time formatted
|
||||
date_string = datetime.datetime.strftime(
|
||||
datetime.datetime.now(), date_format
|
||||
)
|
||||
|
||||
# present the time via speak and braile, there is no soundicon,
|
||||
# interrupt the current speech
|
||||
# Test command for mc search operations
|
||||
test_message = _("MC search test: This demonstrates search functionality")
|
||||
|
||||
# present the test message
|
||||
self.env["runtime"]["OutputManager"].present_text(
|
||||
date_string, sound_icon="", interrupt=True
|
||||
test_message, sound_icon="", interrupt=True
|
||||
)
|
||||
|
||||
def set_callback(self, callback):
|
||||
|
@ -20,22 +20,15 @@ class command:
|
||||
pass
|
||||
|
||||
def get_description(self):
|
||||
return _("presents the date")
|
||||
return _("Test mutt search functionality")
|
||||
|
||||
def run(self):
|
||||
date_format = self.env["runtime"]["SettingsManager"].get_setting(
|
||||
"general", "date_format"
|
||||
)
|
||||
|
||||
# get the time formatted
|
||||
date_string = datetime.datetime.strftime(
|
||||
datetime.datetime.now(), date_format
|
||||
)
|
||||
|
||||
# present the time via speak and braile, there is no soundicon,
|
||||
# interrupt the current speech
|
||||
# Test command for mutt search operations
|
||||
test_message = _("Mutt search test: This demonstrates search functionality")
|
||||
|
||||
# present the test message
|
||||
self.env["runtime"]["OutputManager"].present_text(
|
||||
date_string, sound_icon="", interrupt=True
|
||||
test_message, sound_icon="", interrupt=True
|
||||
)
|
||||
|
||||
def set_callback(self, callback):
|
||||
|
@ -20,22 +20,15 @@ class command:
|
||||
pass
|
||||
|
||||
def get_description(self):
|
||||
return _("presents the date")
|
||||
return _("Test nano search functionality")
|
||||
|
||||
def run(self):
|
||||
date_format = self.env["runtime"]["SettingsManager"].get_setting(
|
||||
"general", "date_format"
|
||||
)
|
||||
|
||||
# get the time formatted
|
||||
date_string = datetime.datetime.strftime(
|
||||
datetime.datetime.now(), date_format
|
||||
)
|
||||
|
||||
# present the time via speak and braile, there is no soundicon,
|
||||
# interrupt the current speech
|
||||
# Test command for nano search operations
|
||||
test_message = _("Nano search test: This demonstrates search functionality")
|
||||
|
||||
# present the test message
|
||||
self.env["runtime"]["OutputManager"].present_text(
|
||||
date_string, sound_icon="", interrupt=True
|
||||
test_message, sound_icon="", interrupt=True
|
||||
)
|
||||
|
||||
def set_callback(self, callback):
|
||||
|
@ -20,22 +20,15 @@ class command:
|
||||
pass
|
||||
|
||||
def get_description(self):
|
||||
return _("presents the date")
|
||||
return _("Test vim search functionality")
|
||||
|
||||
def run(self):
|
||||
date_format = self.env["runtime"]["SettingsManager"].get_setting(
|
||||
"general", "date_format"
|
||||
)
|
||||
|
||||
# get the time formatted
|
||||
date_string = datetime.datetime.strftime(
|
||||
datetime.datetime.now(), date_format
|
||||
)
|
||||
|
||||
# present the time via speak and braile, there is no soundicon,
|
||||
# interrupt the current speech
|
||||
# Test command for vim search operations
|
||||
test_message = _("Vim search test: This demonstrates search functionality")
|
||||
|
||||
# present the test message
|
||||
self.env["runtime"]["OutputManager"].present_text(
|
||||
date_string, sound_icon="", interrupt=True
|
||||
test_message, sound_icon="", interrupt=True
|
||||
)
|
||||
|
||||
def set_callback(self, callback):
|
||||
|
@ -64,7 +64,7 @@ class ProcessManager:
|
||||
args=(event_queue, function, pargs, run_once),
|
||||
)
|
||||
self._Processes.append(t)
|
||||
else: # thread not implemented yet
|
||||
else: # use thread instead of process
|
||||
t = Thread(
|
||||
target=self.custom_event_worker_thread,
|
||||
args=(event_queue, function, pargs, run_once),
|
||||
|
@ -494,11 +494,14 @@ class SettingsManager:
|
||||
self.set_setting("general", "debug_level", 3)
|
||||
self.set_setting("general", "debug_mode", "PRINT")
|
||||
if cliArgs.emulated_pty:
|
||||
self.set_setting("screen", "driver", "ptyDriver")
|
||||
self.set_setting("keyboard", "driver", "ptyDriver")
|
||||
# TODO needs cleanup use dict
|
||||
# self.set_option_arg_dict('keyboard', 'keyboardLayout', 'pty')
|
||||
self.set_setting("keyboard", "keyboardLayout", "pty")
|
||||
# Set PTY driver settings
|
||||
pty_settings = {
|
||||
"screen": {"driver": "ptyDriver"},
|
||||
"keyboard": {"driver": "ptyDriver", "keyboardLayout": "pty"}
|
||||
}
|
||||
for section, settings in pty_settings.items():
|
||||
for key, value in settings.items():
|
||||
self.set_setting(section, key, value)
|
||||
if cliArgs.emulated_evdev:
|
||||
self.set_setting("screen", "driver", "ptyDriver")
|
||||
self.set_setting("keyboard", "driver", "evdevDriver")
|
||||
|
Reference in New Issue
Block a user