Author: bugman Date: Wed Jun 22 20:30:28 2011 New Revision: 13174 URL: http://svn.gna.org/viewcvs/relax?rev=13174&view=rev Log: The page index is now returned by the wizard add_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=13174&r1=13173&r2=13174&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Wed Jun 22 20:30:28 2011 @@ -718,6 +718,8 @@ @type panel: wx.Panel instance @keyword apply_button: A flag which if true will show the apply button for that page. @type apply_button: bool + @return: The index of the page. + @rtype: int """ # Store the page. @@ -740,6 +742,9 @@ # Store the apply button flag. self.button_apply.append(apply_button) + + # Return the index of the page. + return len(self.pages) - 1 def build_buttons(self):