                      dstopts['value'].set(srcval)
                      break
          
      def save_config(self, command=None):
          ''' Save the current GUI state to a config file in json format '''
          cfgfile = filedialog.asksaveasfile( mode='w',
                                              filetypes=self.filetypes, 
                                              defaultextension='.fsw')
          if not cfgfile:
              return
          if command is None:
              cfg = {cmd: {opt['control_title']: opt['value'].get() for opt in opts} 
                     for cmd, opts in self.opts.items()}
 
</s> remove                    for opt in self.opts[command]}}
 </s> add                              for opt in self.opts[command]}} </s> remove         cfgfile.close
 </s> add         cfgfile.close() </s> remove         ''' Load a saved config file '''
 </s> add         """ Load a saved config file """ </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 """
        """ Save the current GUI state to a config file in json format """
        cfgfile = filedialog.asksaveasfile(mode='w',
                                           filetypes=self.filetypes,
                                           defaultextension='.fsw')
                      dstopts['value'].set(srcval)
                      break
          
      def save_config(self, command=None):
        """ Save the current GUI state to a config file in json format """
        cfgfile = filedialog.asksaveasfile(mode='w',
                                           filetypes=self.filetypes,
                                           defaultextension='.fsw')
        """ Save the current GUI state to a config file in json format """
        cfgfile = filedialog.asksaveasfile(mode='w',
                                           filetypes=self.filetypes,
                                           defaultextension='.fsw')
        """ Save the current GUI state to a config file in json format """
        cfgfile = filedialog.asksaveasfile(mode='w',
                                           filetypes=self.filetypes,
                                           defaultextension='.fsw')
        """ Save the current GUI state to a config file in json format """
        cfgfile = filedialog.asksaveasfile(mode='w',
                                           filetypes=self.filetypes,
                                           defaultextension='.fsw')
          if not cfgfile:
              return
          if command is None:
              cfg = {cmd: {opt['control_title']: opt['value'].get() for opt in opts} 
                     for cmd, opts in self.opts.items()}
keep keep keep keep replace 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