even more bits
This commit is contained in:
parent
457adb8278
commit
57da53e2ea
@ -16,11 +16,7 @@ class command():
|
||||
def getDescription(self):
|
||||
return _('get current v menu entry')
|
||||
def run(self):
|
||||
print('CURR MENU')
|
||||
try:
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -16,12 +16,8 @@ class command():
|
||||
def getDescription(self):
|
||||
return _('leave v menu submenu')
|
||||
def run(self):
|
||||
print('DEC LEVEL')
|
||||
try:
|
||||
self.env['runtime']['vmenuManager'].decLevel()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
self.env['runtime']['vmenuManager'].decLevel()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -16,10 +16,6 @@ class command():
|
||||
def getDescription(self):
|
||||
return _('execute v menu entry')
|
||||
def run(self):
|
||||
print('EXEC ENTRY')
|
||||
try:
|
||||
self.env['runtime']['vmenuManager'].executeMenu()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
self.env['runtime']['vmenuManager'].executeMenu()
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -16,12 +16,8 @@ class command():
|
||||
def getDescription(self):
|
||||
return _('enter v menu submenu')
|
||||
def run(self):
|
||||
print('INC LEVEL')
|
||||
try:
|
||||
self.env['runtime']['vmenuManager'].incLevel()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
self.env['runtime']['vmenuManager'].incLevel()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -16,12 +16,8 @@ class command():
|
||||
def getDescription(self):
|
||||
return _('get next v menu entry')
|
||||
def run(self):
|
||||
print('NEXT MENU')
|
||||
try:
|
||||
self.env['runtime']['vmenuManager'].nextIndex()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
self.env['runtime']['vmenuManager'].nextIndex()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -16,12 +16,8 @@ class command():
|
||||
def getDescription(self):
|
||||
return _('get prev v menu entry')
|
||||
def run(self):
|
||||
print('PREV MENU')
|
||||
try:
|
||||
self.env['runtime']['vmenuManager'].prevIndex()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
self.env['runtime']['vmenuManager'].prevIndex()
|
||||
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
||||
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user