          else:
              cfg = {command: {opt['control_title']: opt['value'].get()
                     for opt in self.opts[command]}}
          cfgfile.write(self.serializer.marshal(cfg))
          cfgfile.close
  
      def reset_config(self, command=None):
          ''' Reset the GUI to the default values '''
          if command is None:
              options = [opt for opts in self.opts.values() for opt in opts]
 
</s> remove                    for opt in self.opts[command]}}
 </s> add                              for opt in self.opts[command]}} </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 """ </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             opts = cfg[command]
            self.set_command_args(command, opts)
                
 </s> add             opts = cfg.get(command, None)
            if opts:
                self.set_command_args(command, opts)
            else:
                self.clear_console()
                print('No ' + command + ' section found in file')

        cfgfile.close()
          else:
              cfg = {command: {opt['control_title']: opt['value'].get()
                     for opt in self.opts[command]}}
          cfgfile.write(self.serializer.marshal(cfg))
        cfgfile.close()
  
      def reset_config(self, command=None):
          ''' Reset the GUI to the default values '''
          if command is None:
              options = [opt for opts in self.opts.values() for opt in opts]
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