Author: bugman Date: Wed Jun 22 20:32:06 2011 New Revision: 13175 URL: http://svn.gna.org/viewcvs/relax?rev=13175&view=rev Log: The page index is now stored in the page class object instead of being returned by add_page(). 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=13175&r1=13174&r2=13175&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Wed Jun 22 20:32:06 2011 @@ -718,8 +718,6 @@ @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. @@ -743,8 +741,8 @@ # Store the apply button flag. self.button_apply.append(apply_button) - # Return the index of the page. - return len(self.pages) - 1 + # Store the index of the page. + panel.page_index = len(self.pages) - 1 def build_buttons(self):