Author: bugman Date: Thu May 10 09:42:05 2012 New Revision: 16172 URL: http://svn.gna.org/viewcvs/relax?rev=16172&view=rev Log: The min and max args now default to 0 and 1000 for the Uf_container.add_keyarg() method. This fixes a bug whereby the recently introduced wx.SpinCtrl for the Value wizard page element was failing as the limits were defaulting to None, which for wx.SpinCtrl is not allowed! Modified: branches/uf_redesign/user_functions/objects.py Modified: branches/uf_redesign/user_functions/objects.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/objects.py?rev=16172&r1=16171&r2=16172&view=diff ============================================================================== --- branches/uf_redesign/user_functions/objects.py (original) +++ branches/uf_redesign/user_functions/objects.py Thu May 10 09:42:05 2012 @@ -181,7 +181,7 @@ self.__dict__[name] = value - def add_keyarg(self, name=None, default=None, py_type=None, arg_type=None, size=None, dim=None, min=None, max=None, desc_short=None, desc=None, list_titles=None, wiz_element_type='default', wiz_combo_choices=[], wiz_combo_data=None, wiz_combo_iter=None, wiz_combo_list_size=None, wiz_read_only=None, can_be_none=False, can_be_empty=False, none_elements=False): + def add_keyarg(self, name=None, default=None, py_type=None, arg_type=None, size=None, dim=None, min=0, max=1000, desc_short=None, desc=None, list_titles=None, wiz_element_type='default', wiz_combo_choices=[], wiz_combo_data=None, wiz_combo_iter=None, wiz_combo_list_size=None, wiz_read_only=None, can_be_none=False, can_be_empty=False, none_elements=False): """Wrapper method for adding keyword argument information to the container. @keyword name: The name of the argument.