Author: bugman Date: Fri Sep 2 11:00:36 2011 New Revision: 14570 URL: http://svn.gna.org/viewcvs/relax?rev=14570&view=rev Log: Created the GUI wizard page method on_init(). This is executed each time a wizard page is newly displayed. Modified: 1.3/gui/wizard.py Modified: 1.3/gui/wizard.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/wizard.py?rev=14570&r1=14569&r2=14570&view=diff ============================================================================== --- 1.3/gui/wizard.py (original) +++ 1.3/gui/wizard.py Fri Sep 2 11:00:36 2011 @@ -808,6 +808,13 @@ """ + def on_init(self): + """To be over-ridden if an action is to be performed when a page is newly displayed. + + This method will be called by the wizard class method _display_page() at the very end. + """ + + def on_next(self): """To be over-ridden if an action is to be performed just before moving to the next page. @@ -1265,6 +1272,9 @@ self.Layout() self.Refresh() + # Execute the page's on_init() method. + self._pages[i].on_init() + def _go_back(self, event): """Return to the previous page.