mailr13612 - /branches/gui_testing/gui/wizard.py


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

Header


Content

Posted by edward on July 14, 2011 - 11:30:
Author: bugman
Date: Thu Jul 14 11:30:55 2011
New Revision: 13612

URL: http://svn.gna.org/viewcvs/relax?rev=13612&view=rev
Log:
Executing the _apply() page method on completion of the wizard only occurs if 
the execute flag is false.


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=13612&r1=13611&r2=13612&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Thu Jul 14 11:30:55 2011
@@ -1150,13 +1150,14 @@
         @type event:    wx event
         """
 
-        # Loop over all pages and execute their _apply() methods.
+        # Loop over all pages and execute their _apply() methods, if not 
already done.
         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
+            if not self._exec_count[i]:
+                # Execute the _apply method.
+                self._pages[i]._apply(event)
+
+                # Increment the execution counter.
+                self._exec_count[i] += 1
 
         # Then destroy the dialog.
         self.Destroy()




Related Messages


Powered by MHonArc, Updated Thu Jul 14 12:00:02 2011