          logger.debug("Initializing %s: (console: %s, out_type: '%s')",
                       self.__class__.__name__, console, out_type)
          self.console = console
          self.out_type = out_type
          self.color = ("black" if out_type == "stdout" else "red")
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def write(self, string):
          """ Capture stdout/stderr """
          self.console.insert(tk.END, string, self.out_type)
 
</s> remove         self.console.insert(tk.END, string, self.out_type)
        self.console.tag_config(self.out_type, foreground=self.color)
 </s> add         self.console.insert(tk.END, string, self.get_tag(string)) </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.recolor = re.compile(r".+?(\s\d+:\d+:\d+\s)(?P<lvl>[A-Z]+)\s")
          logger.debug("Initializing %s: (console: %s, out_type: '%s')",
                       self.__class__.__name__, console, out_type)
          self.console = console
          self.out_type = out_type
        self.recolor = re.compile(r".+?(\s\d+:\d+:\d+\s)(?P<lvl>[A-Z]+)\s")
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def write(self, string):
          """ Capture stdout/stderr """
          self.console.insert(tk.END, string, self.out_type)
keep keep keep keep replace keep keep keep keep keep
 Color code log messages in GUI Console 
lib/gui/utils.py