Пример #1
0
 def __init__(self):
     self.__logger = logging.getLogger("cjc.ui.Input")
     Widget.__init__(self)
     self.prompt_win = None
     self.input_win = None
     self.prompt = None
     self.command_line = None
     self.input_widget = None
     self.question_handler = None
     self.question_abort_handler = None
Пример #2
0
 def __init__(self,title,lock=0):
     self.__logger=logging.getLogger("cjc.ui.Window")
     Widget.__init__(self)
     self.buffer=None
     self.title=title
     self.win=None
     self.locked=lock
     self.active=0
     d=self.get_status_dict()
     self.status_bar=StatusBar("window_status",d)
Пример #3
0
 def __init__(self):
     self.__logger=logging.getLogger("cjc.ui.Input")
     Widget.__init__(self)
     self.prompt_win=None
     self.input_win=None
     self.prompt=None
     self.command_line=None
     self.input_widget=None
     self.question_handler=None
     self.question_abort_handler=None
Пример #4
0
 def __init__(self, title, lock=0):
     self.__logger = logging.getLogger("cjc.ui.Window")
     Widget.__init__(self)
     self.buffer = None
     self.title = title
     self.win = None
     self.locked = lock
     self.active = 0
     d = self.get_status_dict()
     self.status_bar = StatusBar("window_status", d)
Пример #5
0
 def __init__(self, *children):
     if len(children) < 1:
         raise ValueError, "At least 2 children must be given"
     Widget.__init__(self)
     self.children = children
Пример #6
0
 def __init__(self, format, dict):
     Widget.__init__(self)
     self.format=format
     self.dict=dict
     self.current_content=None
Пример #7
0
 def __init__(self, format, dict):
     Widget.__init__(self)
     self.format = format
     self.dict = dict
     self.current_content = None
Пример #8
0
 def __init__(self,*children):
     if len(children)<1:
         raise ValueError,"At least 2 children must be given"
     Widget.__init__(self)
     self.children=children