mailr13139 - /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 June 20, 2011 - 20:22:
Author: bugman
Date: Mon Jun 20 20:22:02 2011
New Revision: 13139

URL: http://svn.gna.org/viewcvs/relax?rev=13139&view=rev
Log:
Fix for clicking on the wizard 'ok' and 'finish' buttons.

A click will now go through and execute the apply() method of all pages of 
the wizard.


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=13139&r1=13138&r2=13139&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Mon Jun 20 20:22:02 2011
@@ -879,8 +879,10 @@
         @type event:    wx event
         """
 
-        # Execute the apply method.
-        self.pages[self.current_page].apply(event)
+        # Loop over all pages and execute their apply() methods.
+        for i in range(len(self.pages)):
+            # Execute the apply method.
+            self.pages[i].apply(event)
 
         # Then destroy the dialog.
         self.Destroy()




Related Messages


Powered by MHonArc, Updated Mon Jun 20 21:00:02 2011