          if command is None:
              for cmd, opts in cfg.items():
                  self.set_command_args(cmd, opts)
          else:
              opts = cfg[command]
              self.set_command_args(command, opts)
                  
      def set_command_args(self, command, options):
          ''' Pass the saved config items back to the GUI '''
          for srcopt, srcval in options.items():
              for dstopts in self.opts[command]:
                  if dstopts['control_title'] == srcopt:
 
</s> remove         ''' Pass the saved config items back to the GUI '''
 </s> add         """ Pass the saved config items back to the GUI """ </s> remove         ''' Save the current GUI state to a config file in json format '''
        cfgfile = filedialog.asksaveasfile( mode='w',
                                            filetypes=self.filetypes, 
                                            defaultextension='.fsw')
 </s> add         """ Save the current GUI state to a config file in json format """
        cfgfile = filedialog.asksaveasfile(mode='w',
                                           filetypes=self.filetypes,
                                           defaultextension='.fsw') </s> remove         cfgfile.close
 </s> add         cfgfile.close() </s> remove         ''' Reset the GUI to the default values '''
 </s> add         """ Reset the GUI to the default values """ </s> remove         ''' Clear all values from the GUI '''
 </s> add         """ Clear all values from the GUI """
            opts = cfg.get(command, None)
            if opts:
                self.set_command_args(command, opts)
            else:
                self.clear_console()
                print('No ' + command + ' section found in file')

          if command is None:
              for cmd, opts in cfg.items():
                  self.set_command_args(cmd, opts)
          else:
            opts = cfg.get(command, None)
            if opts:
                self.set_command_args(command, opts)
            else:
                self.clear_console()
                print('No ' + command + ' section found in file')

            opts = cfg.get(command, None)
            if opts:
                self.set_command_args(command, opts)
            else:
                self.clear_console()
                print('No ' + command + ' section found in file')

            opts = cfg.get(command, None)
            if opts:
                self.set_command_args(command, opts)
            else:
                self.clear_console()
                print('No ' + command + ' section found in file')

      def set_command_args(self, command, options):
          ''' Pass the saved config items back to the GUI '''
          for srcopt, srcval in options.items():
              for dstopts in self.opts[command]:
                  if dstopts['control_title'] == srcopt:
keep keep keep keep replace replace 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