Пример #1
0
 def reconstruct_prompt(self):
     def prompter(lp, s):
         l, p = lp
         return self.color(l) + str(p) + s + self.term.NORMAL
     self.prompt = str_list(list(map(prompter, enumerate(self.prefixes),
                                     self.suffixes)), ' ')
Пример #2
0
 def reconstruct_prompt(self):
     def prompter(lp, s):
         l, p = lp
         return self.color(l) + str(p) + s + self.term.NORMAL
     self.prompt = str_list(list(map(prompter, enumerate(self.prefixes),
                                     self.suffixes)), ' ')
Пример #3
0
 def recursive_print(self, printer, msgs):
     return self(str_list(msgs, j=' ', printer=printer))
Пример #4
0
 def recursive_print(self, printer, msgs):
     return self(str_list(msgs, j=' ', printer=printer))