To make Fenrir easier to approach for new developer, start code migration to be pep8 compliant.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user