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