Author: bugman Date: Thu Sep 5 09:41:15 2013 New Revision: 20823 URL: http://svn.gna.org/viewcvs/relax?rev=20823&view=rev Log: Added the relax_disp.exp_type user function to the peak intensity loading wizard. Modified: branches/relax_disp/gui/wizards/peak_intensity.py Modified: branches/relax_disp/gui/wizards/peak_intensity.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/wizards/peak_intensity.py?rev=20823&r1=20822&r2=20823&view=diff ============================================================================== --- branches/relax_disp/gui/wizards/peak_intensity.py (original) +++ branches/relax_disp/gui/wizards/peak_intensity.py Thu Sep 5 09:41:15 2013 @@ -140,6 +140,11 @@ # Relaxation dispersion pages. if self.relax_disp_flag: + # The relax_disp.exp_type page. + page = uf_store['relax_disp.exp_type'].create_page(self, sync=True) + self.page_indices['exp_type'] = self.add_page(page, skip_button=True, proceed_on_error=False) + page.on_init = self.wizard_update_relax_disp_exp_type + # The spectrometer.frequency page. page = uf_store['spectrometer.frequency'].create_page(self, sync=True) self.page_indices['spectrometer_frequency'] = self.add_page(page, skip_button=True, proceed_on_error=False) @@ -304,6 +309,13 @@ # Update the spectrum ID. self.wizard_update_ids(page_key='cpmg_frq') + + + def wizard_update_relax_disp_exp_type(self): + """Update the relax_disp.exp_type page based on previous data.""" + + # Update the spectrum ID. + self.wizard_update_ids(page_key='exp_type') def wizard_update_relax_disp_relax_time(self):