mailr16315 - /branches/uf_redesign/gui/wizard_elements.py


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

Header


Content

Posted by edward on May 16, 2012 - 17:25:
Author: bugman
Date: Wed May 16 17:25:38 2012
New Revision: 16315

URL: http://svn.gna.org/viewcvs/relax?rev=16315&view=rev
Log:
Fix for the clearing of the ComboBox version of the Value GUI element.

The ComboBox text is now reset to '' as well, to clear out the previous 
selection which may no
longer exist.


Modified:
    branches/uf_redesign/gui/wizard_elements.py

Modified: branches/uf_redesign/gui/wizard_elements.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=16315&r1=16314&r2=16315&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard_elements.py (original)
+++ branches/uf_redesign/gui/wizard_elements.py Wed May 16 17:25:38 2012
@@ -1371,9 +1371,14 @@
     def Clear(self):
         """Special method for clearing or resetting the GUI element."""
 
-        # Clear the value from a TextCtrl or ComboBox.
-        if self.element_type in ['text', 'combo']:
+        # Clear the value from a TextCtrl.
+        if self.element_type == 'text':
             self._field.Clear()
+
+        # Clear the value from a ComboBox.
+        if self.element_type == 'combo':
+            self._field.Clear()
+            self._field.SetValue('')
 
 
     def GetValue(self):




Related Messages


Powered by MHonArc, Updated Wed May 16 17:40:02 2012