Author: bugman Date: Mon Nov 14 23:16:52 2016 New Revision: 28277 URL: http://svn.gna.org/viewcvs/relax?rev=28277&view=rev Log: Python 3 fix for the combo list sequence elements.
Comparison of integers to values of None are not allowed. Modified: trunk/gui/input_elements/sequence.py Modified: trunk/gui/input_elements/sequence.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/input_elements/sequence.py?rev=28277&r1=28276&r2=28277&view=diff ============================================================================== --- trunk/gui/input_elements/sequence.py (original) +++ trunk/gui/input_elements/sequence.py Mon Nov 14 23:16:52 2016 @@ -212,6 +212,10 @@ if read_only == None: read_only = False + # Correct the min_length argument. + if combo_list_min == None: + combo_list_min = 1 + # Set up the Combo_list object. self._field = Combo_list(parent, sizer, desc, value_type=value_type, min_length=combo_list_min, choices=combo_choices, data=combo_data, default=default, tooltip=tooltip, read_only=read_only, can_be_none=can_be_none) _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits