even more bits

This commit is contained in:
chrys 2019-02-04 22:04:52 +01:00
parent 457adb8278
commit 57da53e2ea
6 changed files with 15 additions and 39 deletions

View File

@ -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)
def setCallback(self, callback):
pass

View File

@ -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)
def setCallback(self, callback):
pass

View File

@ -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)
def setCallback(self, callback):
pass

View File

@ -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)
def setCallback(self, callback):
pass

View File

@ -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)
def setCallback(self, callback):
pass

View File

@ -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)
def setCallback(self, callback):
pass