示例#1
0
文件: t.py 项目: diegoxter/backups
 def intro(self, act, options=None):
     VIG_ModeBase.intro(self, act, options)
     if not hasattr(act.vibase, 'tOptions'):
         optionsInstance = MODE_options()
         act.vibase.tOptions = optionsInstance
     else:
         optionsInstance = act.vibase.tOptions
     
     optionsInstance.reset(act, options)
示例#2
0
文件: t.py 项目: diegoxter/backups
 def status(self, act):
     options = act.vibase.tOptions
     
     message = VIG_ModeBase.status(self, act)
     if options:
         message += " (%s)" % options.option
     
     return message
示例#3
0
文件: ex.py 项目: diegoxter/backups
 def intro(self, act, options=None):
     VIG_ModeBase.intro(self, act, options)
     #I want the history to survive for the entire window
     if not hasattr(act.vigtk, "exOptions"):
         #we want the options object to only be initialised once
         act.vigtk.exOptions = MODE_options(act, options)
示例#4
0
文件: ex.py 项目: diegoxter/backups
 def status(self, act):
     if act.vibase.stack:
         return ":" + "".join(act.vibase.stack)
     else:
         return "%s (start typing command)" % VIG_ModeBase.status(self, act)
示例#5
0
 def intro(self, act, options=None):
     VIG_ModeBase.intro(self, act, options)
     if not hasattr(act.vibase, "captureOptions"):
         #we want the options object to only be initialised once
         act.vibase.captureOptions = MODE_options(act, options)