                      break
                  if "have diverged" in line.lower():
                      msg = "Your branch has diverged from the remote repo. Not updating"
                      break
          if not update:
              logger.info(msg)
          logger.debug("Checked for update. Update required: %s", update)
          return update
  
      @staticmethod
 
</s> remove         logger.debug("'%s' output: %s", gitcmd, stdout.decode(encoding))
        logger.debug("'%s' returncode: %s", gitcmd, retcode)
 </s> add  </s> remove     def check_for_updates(encoding):
 </s> add     def check_for_updates(encoding, check=False): </s> remove         return topcontainer, bottomcontainer
 </s> add     @staticmethod
    def set_initial_focus():
        """ Set the tab focus from settings """
        config = get_config()
        tab = config.user_config_dict["tab"]
        logger.debug("Setting focus for tab: %s", tab)
        tabs = config.command_tabs
        if tab in tabs:
            config.command_notebook.select(tabs[tab])
        else:
            tool_tabs = config.tools_command_tabs
            if tab in tool_tabs:
                config.command_notebook.select(tabs["tools"])
                config.command_notebook.tools_notebook.select(tool_tabs[tab])
        logger.debug("Focus set to: %s", tab)

    def set_layout(self):
        """ Set initial layout """
        self.update_idletasks()
        root = get_config().root
        config = get_config().user_config_dict
        r_width = root.winfo_width()
        r_height = root.winfo_height()
        w_ratio = config["options_panel_width"] / 100.0
        h_ratio = 1 - (config["console_panel_height"] / 100.0)
        width = round(r_width * w_ratio)
        height = round(r_height * h_ratio)
        logger.debug("Setting Initial Layout: (root_width: %s, root_height: %s, width_ratio: %s, "
                     "height_ratio: %s, width: %s, height: %s", r_width, r_height, w_ratio,
                     h_ratio, width, height)
        self.objects["containers"]["top"].sash_place(0, width, 1)
        self.objects["containers"]["main"].sash_place(0, 1, height)
        self.update_idletasks() </s> remove             ctl = self.control(self.frame, textvariable=self.tk_var)
 </s> add             ctl = self.control(self.frame,
                               textvariable=self.tk_var,
                               font=get_config().default_font)
        if not update or check:
                      break
                  if "have diverged" in line.lower():
                      msg = "Your branch has diverged from the remote repo. Not updating"
                      break
        if not update or check:
              logger.info(msg)
          logger.debug("Checked for update. Update required: %s", update)
          return update
  
      @staticmethod
keep keep keep keep replace keep keep keep keep keep
 Gui Updates (#847)

* GUI Improvements

 - Add basic GUI Config options (available in settings menu)
 - Dynamically add/remove columns on settings panel resize
 - Wrap text properly on info headers
 - Fix helptext formatting for configs
 - Standardize Tooltip widths
 - [code] Apply some widget naming
 - [code] Rename radio_columns to option_columns
 - [code] fix column count checking
 - Add Starting Tab config item
 - Add info boxes to main pages
 - Global font settings
 - Add resources to help menu 
lib/gui/menu.py