Author: michaelbieri Date: Wed Feb 24 06:11:22 2010 New Revision: 10902 URL: http://svn.gna.org/viewcvs/relax?rev=10902&view=rev Log: Function to load reference NOE peak list was added. Modified: branches/bieri_gui/gui_bieri/analyses/auto_noe.py Modified: branches/bieri_gui/gui_bieri/analyses/auto_noe.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_noe.py?rev=10902&r1=10901&r2=10902&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/analyses/auto_noe.py (original) +++ branches/bieri_gui/gui_bieri/analyses/auto_noe.py Wed Feb 24 06:11:22 2010 @@ -540,6 +540,30 @@ box.Add(sizer, 0, wx.EXPAND|wx.SHAPED, 0) + def ref_file(self, event): + """The results directory selection. + + @param event: The wx event. + @type event: wx event + """ + + # Store the original directory. + backup = self.field_ref_noe.GetValue() + + # Select the file. + self.data.ref_file = openfile('Select reference NOE peak list', directory=self.field_ref_noe.GetValue(), default = 'all files (*.*)|*.*') + + # Restore the backup file if no file was chosen. + if not self.data.ref_file: + self.data.ref_file = backup + + # Place the path in the text box. + self.field_ref_noe.SetValue(self.data.ref_file) + + # Terminate the event. + event.Skip() + + def results_directory(self, event): """The results directory selection.