Author: bugman Date: Thu Jun 23 20:17:40 2011 New Revision: 13193 URL: http://svn.gna.org/viewcvs/relax?rev=13193&view=rev Log: Created the on_apply() wizard page method. Modified: branches/gui_testing/gui/wizard.py Modified: branches/gui_testing/gui/wizard.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/wizard.py?rev=13193&r1=13192&r2=13193&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Thu Jun 23 20:17:40 2011 @@ -225,6 +225,9 @@ except AllRelaxErrors, instance: error_message(instance.text, instance.__class__.__name__) + # Execute the on_apply() method. + self.on_apply() + def _build_main_section(self, sizer): """Add the main part of the dialog. @@ -609,6 +612,13 @@ return field + def on_apply(self): + """To be over-ridden if an action is to be performed on hitting the apply button. + + This method will be called by the wizard class method _display_page() just after hiding all other pages but prior to displaying this page. + """ + + def on_display(self): """To be over-ridden if an action is to be performed prior to displaying the page.