Example #1
0
 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)
Example #2
0
    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)
Example #3
0
 def status(self, act):
     options = act.vibase.tOptions
     
     message = VIG_ModeBase.status(self, act)
     if options:
         message += " (%s)" % options.option
     
     return message
Example #4
0
    def status(self, act):
        options = act.vibase.tOptions

        message = VIG_ModeBase.status(self, act)
        if options:
            message += " (%s)" % options.option

        return message
Example #5
0
 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)
Example #6
0
 def status(self, act):
     if act.vibase.stack:
         return ":" + "".join(act.vibase.stack)
     else:
         return "%s (start typing command)" % VIG_ModeBase.status(self, act)
Example #7
0
 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)
Example #8
0
 def status(self, act):
     if act.vibase.stack:
         return ":" + "".join(act.vibase.stack)
     else:
         return "%s (start typing command)" % VIG_ModeBase.status(self, act)
Example #9
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)
Example #10
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)