Most of the pep8 changes finished. Be careful, things may be horribly broken.

This commit is contained in:
Storm Dragon
2025-07-03 13:22:00 -04:00
parent 7408951152
commit 21bb9c6083
344 changed files with 6374 additions and 6083 deletions

View File

@ -11,7 +11,7 @@ class command():
def initialize(self, environment):
self.env = environment
self.keyMakro = [[1, 'KEY_LEFTCTRL'],
self.key_macro = [[1, 'KEY_LEFTCTRL'],
[1, 'KEY_G'],
[0.05, 'SLEEP'],
[0, 'KEY_G'],
@ -20,16 +20,16 @@ class command():
def shutdown(self):
pass
def getDescription(self):
def get_description(self):
return "Learn about the Nano text editor."
def run(self):
self.env['runtime']['outputManager'].presentText(
self.env['runtime']['OutputManager'].present_text(
"Okay, loading the information about Nano.", interrupt=True)
if self.env['runtime']['inputManager'].getShortcutType() in ['KEY']:
self.env['runtime']['inputManager'].sendKeys(self.keyMakro)
elif self.env['runtime']['inputManager'].getShortcutType() in ['BYTE']:
self.env['runtime']['byteManager'].sendBytes(self.byteMakro)
if self.env['runtime']['InputManager'].get_shortcut_type() in ['KEY']:
self.env['runtime']['InputManager'].send_keys(self.key_macro)
elif self.env['runtime']['InputManager'].get_shortcut_type() in ['BYTE']:
self.env['runtime']['ByteManager'].send_bytes(self.byteMakro)
def setCallback(self, callback):
def set_callback(self, callback):
pass

View File

@ -18,12 +18,12 @@ class command():
def shutdown(self):
pass
def getDescription(self):
def get_description(self):
return 'No description found'
def run(self):
self.env['runtime']['outputManager'].presentText(
self.env['runtime']['OutputManager'].present_text(
'ok i run open macro', interrupt=True)
def setCallback(self, callback):
def set_callback(self, callback):
pass

View File

@ -11,7 +11,7 @@ class command():
def initialize(self, environment):
self.env = environment
self.keyMakro = [[1, 'KEY_LEFTCTRL'],
self.key_macro = [[1, 'KEY_LEFTCTRL'],
[1, 'KEY_S'],
[0.05, 'SLEEP'],
[0, 'KEY_S'],
@ -20,16 +20,16 @@ class command():
def shutdown(self):
pass
def getDescription(self):
def get_description(self):
return "Save your work."
def run(self):
self.env['runtime']['outputManager'].presentText(
self.env['runtime']['OutputManager'].present_text(
"Okay, you will now be asked to save your work.", interrupt=True)
if self.env['runtime']['inputManager'].getShortcutType() in ['KEY']:
self.env['runtime']['inputManager'].sendKeys(self.keyMakro)
elif self.env['runtime']['inputManager'].getShortcutType() in ['BYTE']:
self.env['runtime']['byteManager'].sendBytes(self.byteMakro)
if self.env['runtime']['InputManager'].get_shortcut_type() in ['KEY']:
self.env['runtime']['InputManager'].send_keys(self.key_macro)
elif self.env['runtime']['InputManager'].get_shortcut_type() in ['BYTE']:
self.env['runtime']['ByteManager'].send_bytes(self.byteMakro)
def setCallback(self, callback):
def set_callback(self, callback):
pass

View File

@ -18,12 +18,12 @@ class command():
def shutdown(self):
pass
def getDescription(self):
def get_description(self):
return 'No description found'
def run(self):
self.env['runtime']['outputManager'].presentText(
self.env['runtime']['OutputManager'].present_text(
'ok i run replace macro', interrupt=True)
def setCallback(self, callback):
def set_callback(self, callback):
pass

View File

@ -18,12 +18,12 @@ class command():
def shutdown(self):
pass
def getDescription(self):
def get_description(self):
return 'No description found'
def run(self):
self.env['runtime']['outputManager'].presentText(
self.env['runtime']['OutputManager'].present_text(
'ok i run search macro', interrupt=True)
def setCallback(self, callback):
def set_callback(self, callback):
pass

View File

@ -19,21 +19,21 @@ class command():
def shutdown(self):
pass
def getDescription(self):
def get_description(self):
return _('presents the date')
def run(self):
dateFormat = self.env['runtime']['settingsManager'].getSetting(
'general', 'dateFormat')
date_format = self.env['runtime']['SettingsManager'].get_setting(
'general', 'date_format')
# get the time formatted
dateString = datetime.datetime.strftime(
datetime.datetime.now(), dateFormat)
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
self.env['runtime']['outputManager'].presentText(
dateString, soundIcon='', interrupt=True)
self.env['runtime']['OutputManager'].present_text(
date_string, sound_icon ='', interrupt=True)
def setCallback(self, callback):
def set_callback(self, callback):
pass