polish vmenu with tutorial mode
This commit is contained in:
parent
8322aa7905
commit
6fd2f60d66
@ -14,11 +14,11 @@ class command():
|
|||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
self.env['runtime']['helpManager'].toggleTutorialMode()
|
self.env['runtime']['helpManager'].toggleTutorialMode()
|
||||||
#self.env['runtime']['outputManager'].presentText(, interrupt=True)
|
|
||||||
return _('Exiting tutorial mode. To enter tutorial mode again press Fenrir+f1')
|
return _('Exiting tutorial mode. To enter tutorial mode again press Fenrir+f1')
|
||||||
def run(self):
|
def run(self):
|
||||||
self.env['runtime']['helpManager'].toggleTutorialMode()
|
self.env['runtime']['helpManager'].toggleTutorialMode()
|
||||||
self.env['runtime']['outputManager'].presentText( _('Entering tutorial mode. In this mode commands are described but not executed. You can move through the list of commands with the up and down arrow keys. To Exit tutorial mode press Fenrir+f1.'), interrupt=True)
|
if self.env['runtime']['helpManager'].isTutorialMode():
|
||||||
|
self.env['runtime']['outputManager'].presentText( _('Entering tutorial mode. In this mode commands are described but not executed. You can move through the list of commands with the up and down arrow keys. To Exit tutorial mode press Fenrir+f1.'), interrupt=True)
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
|
@ -15,7 +15,7 @@ class command():
|
|||||||
pass
|
pass
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
self.env['runtime']['vmenuManager'].togglelVMenuMode()
|
self.env['runtime']['vmenuManager'].togglelVMenuMode()
|
||||||
return _('Exiting v menu mode.')
|
return _('Entering or Leaving v menu mode.')
|
||||||
def run(self):
|
def run(self):
|
||||||
self.env['runtime']['vmenuManager'].togglelVMenuMode()
|
self.env['runtime']['vmenuManager'].togglelVMenuMode()
|
||||||
if self.env['runtime']['vmenuManager'].getActive():
|
if self.env['runtime']['vmenuManager'].getActive():
|
||||||
|
Loading…
Reference in New Issue
Block a user