      def build_control(self, frame, control, default, helptext, choices, sysbrowser):
          ''' Build and place the option controls '''
          default = default if default is not None else ''
  
          var = tk.BooleanVar(frame) if control == tk.Checkbutton else tk.StringVar(frame)
          var.set(default)
  
          if sysbrowser is not None:
              self.add_browser_buttons(frame, sysbrowser, var)
  
 
</s> remove     def build_control(self, frame, control, default, helptext, choices, sysbrowser):
        ''' Build and place the option controls '''
 </s> add     def build_one_control(self, frame, control, default, helptext, choices,
                          sysbrowser):
        """ Build and place the option controls """ </s> remove     
    def build_control_label(self, frame, control_title):
        ''' Build and place the control label '''
        lbl = tk.Label(frame, text=control_title, width=15, anchor=tk.W)
 </s> add     @staticmethod
    def build_one_control_label(frame, control_title):
        """ Build and place the control label """
        lbl = ttk.Label(frame, text=control_title, width=18, anchor=tk.W) </s> remove         ctlkwargs = {'variable': var} if control == tk.Checkbutton else {'textvariable': var}
        packkwargs = {'anchor': tk.W} if control == tk.Checkbutton else {'fill': tk.X}

        if control == ttk.Combobox: #TODO: Remove this hacky fix to force the width of the frame
            ctlkwargs['width'] = 40

 </s> add         ctlkwargs = {'variable': var} if control == ttk.Checkbutton else {
            'textvariable': var}
        packkwargs = {'anchor': tk.W} if control == ttk.Checkbutton else {
            'fill': tk.X, 'expand': True} </s> remove         ''' Clear all values from the GUI '''
 </s> add         """ Clear all values from the GUI """ </s> remove         ctlframe = self.build_control_frame(option_frame)
        
        dflt = option.get('default', False) if ctl == tk.Checkbutton else option.get('default', '')
        choices = option['choices'] if ctl == ttk.Combobox else None

        self.build_control_label(ctlframe, ctltitle)
        option['value'] = self.build_control(ctlframe, ctl, dflt, ctlhelp, choices, sysbrowser)

    def build_control_frame(self, option_frame):
        ''' Build the frame to hold the control '''
        frame = tk.Frame(option_frame)
        frame.pack(fill=tk.X)
 </s> add         ctlframe = self.build_one_control_frame()
        dflt = self.option.get('default', '')
        dflt = self.option.get('default', False) if ctl == ttk.Checkbutton else dflt
        choices = self.option['choices'] if ctl == ttk.Combobox else None

        self.build_one_control_label(ctlframe, ctltitle)
        self.option['value'] = self.build_one_control(ctlframe,
                                                      ctl,
                                                      dflt,
                                                      ctlhelp,
                                                      choices,
                                                      sysbrowser)

    def build_one_control_frame(self):
        """ Build the frame to hold the control """
        frame = ttk.Frame(self.option_frame)
        frame.pack(fill=tk.X, expand=True)
        var = tk.BooleanVar(
            frame) if control == ttk.Checkbutton else tk.StringVar(frame)
      def build_control(self, frame, control, default, helptext, choices, sysbrowser):
          ''' Build and place the option controls '''
          default = default if default is not None else ''
  
        var = tk.BooleanVar(
            frame) if control == ttk.Checkbutton else tk.StringVar(frame)
          var.set(default)
  
          if sysbrowser is not None:
              self.add_browser_buttons(frame, sysbrowser, var)
  
keep keep keep keep replace keep keep keep keep keep
 GUI v0.2.1b (#352)

* Code refactor

* Console Added

* Add graphing with matplotlib

* Add GUI preview support

* Improve import handling.

* Add GUI integration for tools.py (Launch tools.py with the gui command)

* Reformat to conform to PEP8.

* Add Tooltips, 

* Make panels user adjustable

* Fix convert.py Sharpen default value 
scripts/gui.py