Author: bugman Date: Mon Jul 18 11:19:39 2011 New Revision: 13677 URL: http://svn.gna.org/viewcvs/relax?rev=13677&view=rev Log: The wizard _go_next() method can now handle not having a next page - the _ok() method is now applied. 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=13677&r1=13676&r2=13677&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Mon Jul 18 11:19:39 2011 @@ -1184,6 +1184,11 @@ # Determine the next page. next_page = self._seq_fn_list[self._current_page]() + # No next page, so terminate. + if self._pages[next_page] == None: + self._ok(None) + return + # Update the sequence lists. self._seq_next[self._current_page] = next_page self._seq_prev[next_page] = self._current_page