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