Author: bugman Date: Tue Jul 26 22:30:32 2011 New Revision: 13913 URL: http://svn.gna.org/viewcvs/relax?rev=13913&view=rev Log: The value.set user function GUI page now properly converts the value to the right type. Modified: branches/gui_testing/gui/user_functions/value.py Modified: branches/gui_testing/gui/user_functions/value.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/value.py?rev=13913&r1=13912&r2=13913&view=diff ============================================================================== --- branches/gui_testing/gui/user_functions/value.py (original) +++ branches/gui_testing/gui/user_functions/value.py Tue Jul 26 22:30:32 2011 @@ -128,7 +128,7 @@ val_str = gui_to_str(self.val.GetValue()) val_type = self.data_type(param) try: - val = apply(val_type, val_str) + val = val_type(val_str) except ValueError: gui_raise(RelaxError("The value '%s' should be of the type %s." % (val_str, val_type)))