mailr13221 - /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 24, 2011 - 15:05:
Author: bugman
Date: Fri Jun 24 15:05:30 2011
New Revision: 13221

URL: http://svn.gna.org/viewcvs/relax?rev=13221&view=rev
Log:
The wizards now obtain a unique set of IDs for all of the possible buttons.


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=13221&r1=13220&r2=13221&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Fri Jun 24 15:05:30 2011
@@ -729,6 +729,7 @@
         self._button_sizers = []
         self._button_apply_flag = []
         self._buttons = []
+        self._button_ids = []
 
         # A max of 10 pages should be plenty enough (any more and the 
developer should be shot!).
         for i in range(10):
@@ -751,6 +752,14 @@
                                   'ok': None,
                                   'finish': None,
                                   'cancel': None})
+
+            # Initialise a set of unique button IDs.
+            self._button_ids.append({'back': wx.NewID(),
+                                     'apply': wx.NewID(),
+                                     'next': wx.NewID(),
+                                     'ok': wx.NewID(),
+                                     'finish': wx.NewID(),
+                                     'cancel': wx.NewID()})
 
 
     def _build_buttons(self):




Related Messages


Powered by MHonArc, Updated Fri Jun 24 15:20:02 2011