Author: bugman Date: Wed Jun 6 15:07:59 2012 New Revision: 16695 URL: http://svn.gna.org/viewcvs/relax?rev=16695&view=rev Log: Bug fix for the SetValue() method of the Value GUI input element. If the value is None, this no longer fails for read only combo boxes. Modified: branches/uf_redesign/gui/input_elements/value.py Modified: branches/uf_redesign/gui/input_elements/value.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/input_elements/value.py?rev=16695&r1=16694&r2=16695&view=diff ============================================================================== --- branches/uf_redesign/gui/input_elements/value.py (original) +++ branches/uf_redesign/gui/input_elements/value.py Wed Jun 6 15:07:59 2012 @@ -311,7 +311,8 @@ if not found: # Invalid value. if self.read_only: - raise RelaxError("The Value element is read only, cannot set the value '%s'." % value) + if value != None: + raise RelaxError("The Value element is read only, cannot set the value '%s'." % value) # Set the unknown value, and remove the selection. else: