mailr16344 - /branches/uf_redesign/gui/input_elements/combo_list.py


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

Header


Content

Posted by edward on May 18, 2012 - 16:46:
Author: bugman
Date: Fri May 18 16:46:20 2012
New Revision: 16344

URL: http://svn.gna.org/viewcvs/relax?rev=16344&view=rev
Log:
The ComboBox data values are now set to the choices in the __init__() method 
if not given.

This is required by the GUI tests, as the ResetChoices() method which does 
the same thing has not
been called.


Modified:
    branches/uf_redesign/gui/input_elements/combo_list.py

Modified: branches/uf_redesign/gui/input_elements/combo_list.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/input_elements/combo_list.py?rev=16344&r1=16343&r2=16344&view=diff
==============================================================================
--- branches/uf_redesign/gui/input_elements/combo_list.py (original)
+++ branches/uf_redesign/gui/input_elements/combo_list.py Fri May 18 16:46:20 
2012
@@ -86,6 +86,10 @@
         self._can_be_none = can_be_none
         self._min_length = min_length
 
+        # Set the data if needed.
+        if self._data == None:
+            self._data = deepcopy(self._choices)
+
         # The value types.
         if value_type in ['float', 'num']:
             self.convert_from_gui = gui_to_float




Related Messages


Powered by MHonArc, Updated Fri May 18 17:00:02 2012