fenrir/src/fenrirscreenreader/commands/vmenu-navigation/next_vmenu_entry.py

25 lines
688 B
Python
Raw Normal View History

2019-01-22 15:29:55 -05:00
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core import debug
class command():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
def getDescription(self):
2019-01-28 18:03:31 -05:00
return _('get next v menu entry')
2019-01-22 15:29:55 -05:00
def run(self):
2019-02-03 18:19:21 -05:00
print('NEXT MENU')
2019-01-28 18:03:31 -05:00
self.env['runtime']['vmenuManager'].nextIndex()
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
2019-01-22 15:29:55 -05:00
def setCallback(self, callback):
pass