Author: bugman Date: Thu Jul 14 11:51:58 2011 New Revision: 13613 URL: http://svn.gna.org/viewcvs/relax?rev=13613&view=rev Log: The add_page() wizard method now returns the index of the page in the wizard. 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=13613&r1=13612&r2=13613&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Thu Jul 14 11:51:58 2011 @@ -1172,6 +1172,8 @@ @type apply_button: bool @keyword exec_on_next: A flag which if true will run the on_execute() method when clicking on the next button. @type exec_on_next: bool + @return: The index of the page in the wizard. + @rtype: int """ # Store the page. @@ -1198,6 +1200,9 @@ # Store the index of the page. panel.page_index = self._num_pages - 1 + + # Return the index of the page. + return panel.page_index def block_next(self, block=True):