          logger.debug("Initialized %s", self.__class__.__name__)
  
      def write(self, string):
          """ Capture stdout/stderr """
          self.console.insert(tk.END, string, self.out_type)
          self.console.tag_config(self.out_type, foreground=self.color)
          self.console.see(tk.END)
  
      @staticmethod
      def flush():
          """ If flush is forced, send it to normal terminal """
 
</s> remove         self.color = ("black" if out_type == "stdout" else "red")
 </s> add         self.recolor = re.compile(r".+?(\s\d+:\d+:\d+\s)(?P<lvl>[A-Z]+)\s") </s> remove         self.console.config(width=100, height=6, bg="gray90", fg="black")
 </s> add         self.console.config(width=100, height=6, bg="#1E1E1E", fg="white")
        self.console.insert(tk.END, string, self.get_tag(string))
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def write(self, string):
          """ Capture stdout/stderr """
        self.console.insert(tk.END, string, self.get_tag(string))
        self.console.insert(tk.END, string, self.get_tag(string))
          self.console.see(tk.END)
  
      @staticmethod
      def flush():
          """ If flush is forced, send it to normal terminal """
keep keep keep keep replace replace keep keep keep keep keep
 Color code log messages in GUI Console 
lib/gui/utils.py