Author: bugman Date: Thu Jun 23 16:43:14 2011 New Revision: 13187 URL: http://svn.gna.org/viewcvs/relax?rev=13187&view=rev Log: The new analysis wizard page now blocks and unblocks the next button. This is done by using the wizard page on_display() method to block, and the button toggling unblocks. Modified: branches/gui_testing/gui/analyses/wizard.py Modified: branches/gui_testing/gui/analyses/wizard.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/wizard.py?rev=13187&r1=13186&r2=13187&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/wizard.py (original) +++ branches/gui_testing/gui/analyses/wizard.py Thu Jun 23 16:43:14 2011 @@ -272,6 +272,13 @@ return button + def on_display(self): + """Disable the next button until an analysis is selected.""" + + # Turn off the next button. + self.parent.block_next() + + def select_consist_test(self, event): """NOE analysis selection. @@ -394,3 +401,6 @@ # Unfreeze. self.Thaw() + + # Unblock forwards movement. + self.parent.block_next(False)