Author: bugman Date: Thu Jun 23 20:18:44 2011 New Revision: 13194 URL: http://svn.gna.org/viewcvs/relax?rev=13194&view=rev Log: Renamed the on_exit() wizard page method to on_execute(). 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=13194&r1=13193&r2=13194&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Thu Jun 23 20:18:44 2011 @@ -84,12 +84,12 @@ class Wiz_page(wx.Panel): """The wizard pages to be placed inside the wizard. - To inherit from this class, you must supply minimally the add_contents() and on_exit() methods. The add_contents() method should build the specific GUI elements, and the on_exit() method is called when clicking on the apply, ok, or finish buttons. The following methods are also designed to be overwritten: + To inherit from this class, you must supply minimally the add_contents() and on_execute() methods. The add_contents() method should build the specific GUI elements, and the on_execute() method is called when clicking on the apply, ok, or finish buttons. The following methods are also designed to be overwritten: - add_artwork(), this builds the left hand artwork section of the page. - add_contents(), this builds the right hand section of the page. - on_display(), this is executed when the page is displayed. - - on_exit(), this is executed when the wizard is terminated or the apply button is hit. + - on_execute(), this is executed when the wizard is terminated or the apply button is hit. - on_next(), this is executed when moving to the next wizard page. The following methods can be used by add_contents() to create standard GUI elements: @@ -221,7 +221,7 @@ # Execute. try: - self.on_exit() + self.on_execute() except AllRelaxErrors, instance: error_message(instance.text, instance.__class__.__name__) @@ -626,7 +626,7 @@ """ - def on_exit(self): + def on_execute(self): """To be over-ridden if an action is to be performed just before exiting the page. This method is called when terminating the wizard or hitting the apply button.