Author: bugman Date: Sat May 5 21:17:55 2012 New Revision: 16002 URL: http://svn.gna.org/viewcvs/relax?rev=16002&view=rev Log: The default list element now defaults to read only, whereas the Combo_list object defaults to not read only. Modified: branches/uf_redesign/gui/wizard_elements.py Modified: branches/uf_redesign/gui/wizard_elements.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=16002&r1=16001&r2=16002&view=diff ============================================================================== --- branches/uf_redesign/gui/wizard_elements.py (original) +++ branches/uf_redesign/gui/wizard_elements.py Sat May 5 21:17:55 2012 @@ -294,6 +294,10 @@ # Initialise the default element. if self.element_type == 'default': + # Translate the read_only flag if None. + if read_only == None: + read_only = True + # Init. sub_sizer = wx.BoxSizer(wx.HORIZONTAL) @@ -353,6 +357,11 @@ # Initialise the combo list input field. elif self.element_type == 'combo_list': + # Translate the read_only flag if None. + if read_only == None: + read_only = False + + # Set up the Combo_list object. self._field = Combo_list(parent, sizer, desc, n=combo_list_size, choices=combo_choices, tooltip=tooltip, read_only=read_only) # Unknown field.