Author: bugman Date: Thu May 3 10:00:09 2012 New Revision: 15892 URL: http://svn.gna.org/viewcvs/relax?rev=15892&view=rev Log: The wizard_elements.Base_value.SetValue() method now works properly with the ComboBox. Modified: 1.3/gui/wizard_elements.py Modified: 1.3/gui/wizard_elements.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/wizard_elements.py?rev=15892&r1=15891&r2=15892&view=diff ============================================================================== --- 1.3/gui/wizard_elements.py (original) +++ 1.3/gui/wizard_elements.py Thu May 3 10:00:09 2012 @@ -191,8 +191,17 @@ @type value: list of str """ - # Convert and set the value. - self._field.SetValue(self.convert_to_gui(value)) + # Convert and set the value for a TextCtrl. + if self.element_type == 'text': + self._field.SetValue(self.convert_to_gui(value)) + + # Convert and set the value for a ComboBox. + if self.element_type == 'combo': + # Loop until the proper client data is found. + for i in range(self._field.GetCount()): + if self._field.GetClientData(i) == value: + self._field.SetSelection(i) + break