mailr13654 - /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 15, 2011 - 16:20:
Author: bugman
Date: Fri Jul 15 16:20:41 2011
New Revision: 13654

URL: http://svn.gna.org/viewcvs/relax?rev=13654&view=rev
Log:
The spin_id_element GUI element choices are now a method argument.


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=13654&r1=13653&r2=13654&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Fri Jul 15 16:20:41 2011
@@ -782,13 +782,15 @@
         """
 
 
-    def spin_id_element(self, sizer, desc="The spin ID string:", 
default=None, divider=None, padding=0, spacer=None):
+    def spin_id_element(self, sizer, desc="The spin ID string:", 
choices=['@N', '@C'], default=None, divider=None, padding=0, spacer=None):
         """Build a special the input field widget.
 
         @param sizer:       The sizer to put the input field widget into.
         @type sizer:        wx.Sizer instance
         @keyword desc:      The text description.
         @type desc:         str
+        @keyword choices:   The list of choices to present to the user.
+        @type choices:      list of str
         @keyword default:   The default value.
         @type default:      str or None
         @keyword divider:   The optional position of the divider.  If None, 
the class variable _div_left will be used.
@@ -820,7 +822,7 @@
         sub_sizer.AddSpacer((divider - x, 0))
 
         # The input field.
-        field = wx.ComboBox(self, -1, '', choices=['@N', '@C'])
+        field = wx.ComboBox(self, -1, '', choices=choices)
         field.SetMinSize((50, 27))
         sub_sizer.Add(field, 1, wx.ALIGN_CENTER_VERTICAL, 0)
 




Related Messages


Powered by MHonArc, Updated Fri Jul 15 16:40:02 2011