Author: bugman Date: Thu Jul 14 11:12:08 2011 New Revision: 13611 URL: http://svn.gna.org/viewcvs/relax?rev=13611&view=rev Log: The execution increment counting is now happening in the wizard and not in the wizard pages. 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=13611&r1=13610&r2=13611&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Thu Jul 14 11:12:08 2011 @@ -198,9 +198,6 @@ # Finished. self.on_completion() - # Increment the execution counter. - self.parent._exec_count[self.parent._current_page] += 1 - # Execute the on_apply() method. self.on_apply() @@ -1136,6 +1133,9 @@ if self._exec_on_next[self._current_page]: self._pages[self._current_page]._apply(event) + # Increment the execution counter. + self._exec_count[self._current_page] += 1 + # Change the current page. self._current_page += 1 @@ -1154,6 +1154,9 @@ for i in range(self._num_pages): # Execute the _apply method. self._pages[i]._apply(event) + + # Increment the execution counter. + self._exec_count[i] += 1 # Then destroy the dialog. self.Destroy()