          self._theme = get_config().user_theme["console"]
          self._console = _ReadOnlyText(self)
          rc_menu = ContextMenu(self._console)
          rc_menu.cm_bind()
          self._console_clear = get_config().tk_vars['consoleclear']
          self._set_console_clear_var_trace()
          self._debug = debug
          self._build_console()
          self._add_tags()
          logger.debug("Initialized %s", self.__class__.__name__)
 
</s> remove         self._console = _ReadOnlyText(self)
 </s> add         self._console = _ReadOnlyText(self, relief=tk.FLAT) </s> remove         super().__init__(parent)
        self.pack(side=tk.TOP, anchor=tk.W, padx=10, pady=(2, 0),
                  fill=tk.BOTH, expand=True)
 </s> add         super().__init__(parent, relief=tk.SOLID, padding=1, style="Console.TFrame") </s> remove         self._style = _Style(self.default_font, root)
 </s> add         self._style = Style(self.default_font, root, PATHCACHE) </s> remove         self.retfile = getattr(self, "_{}".format(self._handletype.lower()))()
 </s> add         self.return_file = getattr(self, "_{}".format(self._handletype.lower()))()
        self._console_clear = get_config().tk_vars['console_clear']
          self._theme = get_config().user_theme["console"]
          self._console = _ReadOnlyText(self)
          rc_menu = ContextMenu(self._console)
          rc_menu.cm_bind()
        self._console_clear = get_config().tk_vars['console_clear']
          self._set_console_clear_var_trace()
          self._debug = debug
          self._build_console()
          self._add_tags()
          logger.debug("Initialized %s", self.__class__.__name__)
keep keep keep keep replace keep keep keep keep keep
 GUI fixes
  - Split themes and styles to own module
  - Fix border on console window
  - variable name updates to make pep8 happy 
lib/gui/custom_widgets.py