Author: bugman Date: Tue Jan 11 12:54:39 2011 New Revision: 12201 URL: http://svn.gna.org/viewcvs/relax?rev=12201&view=rev Log: The settings window is now using the base class method to save all the free file format info. Modified: branches/bieri_gui/gui_bieri/settings.py Modified: branches/bieri_gui/gui_bieri/settings.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/settings.py?rev=12201&r1=12200&r2=12201&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/settings.py (original) +++ branches/bieri_gui/gui_bieri/settings.py Tue Jan 11 12:54:39 2011 @@ -1,7 +1,7 @@ ############################################################################### # # # Copyright (C) 2009 Michael Bieri # -# Copyright (C) 2010 Edward d'Auvergne # +# Copyright (C) 2010-2011 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -236,18 +236,8 @@ @type event: wx event """ - # Get the column numbers. - ds.relax_gui.free_file_format.spin_id_col = gui_to_int(self.spin_id_col.GetValue()) - ds.relax_gui.free_file_format.mol_name_col = gui_to_int(self.mol_name_col.GetValue()) - ds.relax_gui.free_file_format.res_num_col = gui_to_int(self.res_num_col.GetValue()) - ds.relax_gui.free_file_format.res_name_col = gui_to_int(self.res_name_col.GetValue()) - ds.relax_gui.free_file_format.spin_num_col = gui_to_int(self.spin_num_col.GetValue()) - ds.relax_gui.free_file_format.spin_name_col = gui_to_int(self.spin_name_col.GetValue()) - - # The column separator. - ds.relax_gui.free_file_format.sep = str(self.sep.GetValue()) - if ds.relax_gui.free_file_format.sep == 'white space': - ds.relax_gui.free_file_format.sep = None + # Execute the base class method. + self.free_file_format_save(event) # Destroy the window. self.Destroy()