To make Fenrir easier to approach for new developer, start code migration to be pep8 compliant.

This commit is contained in:
Storm Dragon
2025-07-01 22:23:50 -04:00
parent 4bcf82178e
commit 7408951152
345 changed files with 8688 additions and 3852 deletions

View File

@ -5,21 +5,30 @@
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core.i18n import _
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
pass
def getDescription(self):
return _('get current quick menu entry')
def run(self):
menu = ''
value = ''
menu = self.env['runtime']['quickMenuManager'].getCurrentEntry()
if menu != '':
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
self.env['runtime']['outputManager'].presentText(menu + ' ' + value, interrupt=True)
self.env['runtime']['outputManager'].presentText(
menu + ' ' + value, interrupt=True)
def setCallback(self, callback):
pass

View File

@ -5,17 +5,25 @@
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core.i18n import _
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
pass
def getDescription(self):
return _('get current quick menu value')
def run(self):
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
self.env['runtime']['outputManager'].presentText(value, interrupt=True)
def setCallback(self, callback):
pass

View File

@ -5,15 +5,22 @@
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core.i18n import _
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
pass
def getDescription(self):
return _('get next quick menu entry')
def run(self):
menu = ''
value = ''
@ -21,8 +28,11 @@ class command():
menu = self.env['runtime']['quickMenuManager'].getCurrentEntry()
if menu != '':
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
self.env['runtime']['outputManager'].presentText(menu + ' ' + value, interrupt=True)
self.env['runtime']['outputManager'].presentText(
menu + ' ' + value, interrupt=True)
else:
self.env['runtime']['outputManager'].presentText(_('Quick menu not available'), interrupt=True)
self.env['runtime']['outputManager'].presentText(
_('Quick menu not available'), interrupt=True)
def setCallback(self, callback):
pass

View File

@ -5,18 +5,27 @@
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core.i18n import _
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
pass
def getDescription(self):
return _('get next quick menu value')
def run(self):
if self.env['runtime']['quickMenuManager'].nextValue():
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
self.env['runtime']['outputManager'].presentText(value, interrupt=True)
self.env['runtime']['outputManager'].presentText(
value, interrupt=True)
def setCallback(self, callback):
pass

View File

@ -5,15 +5,22 @@
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core.i18n import _
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
pass
def getDescription(self):
return _('get previous quick menu entry')
def run(self):
menu = ''
value = ''
@ -21,8 +28,11 @@ class command():
menu = self.env['runtime']['quickMenuManager'].getCurrentEntry()
if menu != '':
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
self.env['runtime']['outputManager'].presentText(menu + ' ' + value, interrupt=True)
self.env['runtime']['outputManager'].presentText(
menu + ' ' + value, interrupt=True)
else:
self.env['runtime']['outputManager'].presentText(_('Quick menu not available'), interrupt=True)
self.env['runtime']['outputManager'].presentText(
_('Quick menu not available'), interrupt=True)
def setCallback(self, callback):
pass

View File

@ -5,18 +5,27 @@
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core.i18n import _
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
pass
def getDescription(self):
return _('get previous quick menu value')
def run(self):
if self.env['runtime']['quickMenuManager'].prevValue():
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
self.env['runtime']['outputManager'].presentText(value, interrupt=True)
self.env['runtime']['outputManager'].presentText(
value, interrupt=True)
def setCallback(self, callback):
pass