Beispiel #1
0
 def set_active(self,yes):
     if yes:
         self.active=1
         a="*"
         keytable.activate("window",self)
         cmdtable.activate("window",self)
     else:
         self.active=0
         a=""
         keytable.deactivate("window",self)
         cmdtable.deactivate("window",self)
     d=self.status_bar.get_dict()
     d["active"]=a
     if cjc_globals.screen:
         self.status_bar.update(0)
         if yes and cjc_globals.screen.input_handler:
             cjc_globals.screen.input_handler.current_buffer_changed(self.buffer)
Beispiel #2
0
 def set_active(self, yes):
     if yes:
         self.active = 1
         a = "*"
         keytable.activate("window", self)
         cmdtable.activate("window", self)
     else:
         self.active = 0
         a = ""
         keytable.deactivate("window", self)
         cmdtable.deactivate("window", self)
     d = self.status_bar.get_dict()
     d["active"] = a
     if cjc_globals.screen:
         self.status_bar.update(0)
         if yes and cjc_globals.screen.input_handler:
             cjc_globals.screen.input_handler.current_buffer_changed(
                 self.buffer)
Beispiel #3
0
 def set_parent(self, parent):
     InputWidget.set_parent(self, parent)
     if parent:
         keytable.activate("bool-input", self, input_window=self.win)
     else:
         keytable.deactivate("bool-input", self)
Beispiel #4
0
 def set_window(self, win):
     Buffer.set_window(self, win)
     if win:
         keytable.activate("list-buffer", self)
     else:
         keytable.deactivate("list-buffer", self)
Beispiel #5
0
 def set_parent(self,parent):
     InputWidget.set_parent(self,parent)
     if parent:
         keytable.activate("choice-input",self,self.keypressed,self.win)
     else:
         keytable.deactivate("choice-input",self)
Beispiel #6
0
 def set_window(self, win):
     Buffer.set_window(self, win)
     if win:
         keytable.activate("list-buffer", self)
     else:
         keytable.deactivate("list-buffer", self)
Beispiel #7
0
 def set_parent(self, parent):
     InputWidget.set_parent(self, parent)
     if parent:
         keytable.activate("choice-input", self, self.keypressed, self.win)
     else:
         keytable.deactivate("choice-input", self)
Beispiel #8
0
 def set_parent(self,parent):
     InputWidget.set_parent(self,parent)
     if parent:
         keytable.activate("list-input",self,input_window=self.win)
     else:
         keytable.deactivate("list-input",self)