mailr17418 - /trunk/gui/wizard.py


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

Header


Content

Posted by edward on September 01, 2012 - 14:58:
Author: bugman
Date: Sat Sep  1 14:58:49 2012
New Revision: 17418

URL: http://svn.gna.org/viewcvs/relax?rev=17418&view=rev
Log:
Created the GUI wizard _apply() method for executing the current page's 
_apply() method.

This is for the GUI tests to simulate a click on the 'Apply' button.


Modified:
    trunk/gui/wizard.py

Modified: trunk/gui/wizard.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/wizard.py?rev=17418&r1=17417&r2=17418&view=diff
==============================================================================
--- trunk/gui/wizard.py (original)
+++ trunk/gui/wizard.py Sat Sep  1 14:58:49 2012
@@ -474,6 +474,17 @@
         self.Bind(wx.EVT_CLOSE, self._handler_close)
 
 
+    def _apply(self, event=None):
+        """Execute the current page's 'Apply' method.
+
+        @keyword event: The wx event.
+        @type event:    wx event
+        """
+
+        # Execute the current page's apply() method.
+        self._pages[self._current_page]._apply()
+
+
     def _build_buttons(self):
         """Construct the buttons for all pages of the wizard."""
 




Related Messages


Powered by MHonArc, Updated Sat Sep 01 15:20:02 2012