mailr13212 - /branches/gui_testing/gui/analyses/wizard.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 24, 2011 - 11:15:
Author: bugman
Date: Fri Jun 24 11:15:38 2011
New Revision: 13212

URL: http://svn.gna.org/viewcvs/relax?rev=13212&view=rev
Log:
The next button in the first page of the new analysis wizard is not disabled 
if the page is returned to.


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=13212&r1=13211&r2=13212&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/wizard.py (original)
+++ branches/gui_testing/gui/analyses/wizard.py Fri Jun 24 11:15:38 2011
@@ -179,6 +179,9 @@
 
         # The sizes.
         size = (170, 170)
+
+        # No button is initially selected.
+        self._select_flag = False
 
         # The horizontal spacers.
         sizer1 = wx.BoxSizer(wx.HORIZONTAL)
@@ -274,7 +277,7 @@
         """Disable the next button until an analysis is selected."""
 
         # Turn off the next button.
-        self.parent.block_next()
+        self.parent.block_next(not self._select_flag)
 
 
     def select_consist_test(self, event):
@@ -382,6 +385,9 @@
 
         # First freeze the wizard.
         self.Freeze()
+
+        # The button is selected.
+        self._select_flag = True
 
         # Deselect all.
         self.button_noe.SetValue(False)
@@ -401,4 +407,4 @@
         self.Thaw()
 
         # Unblock forwards movement.
-        self.parent.block_next(False)
+        self.parent.block_next(not self._select_flag)




Related Messages


Powered by MHonArc, Updated Fri Jun 24 12:00:03 2011