Author: bugman Date: Fri May 11 18:38:32 2012 New Revision: 16241 URL: http://svn.gna.org/viewcvs/relax?rev=16241&view=rev Log: The can_be_none arg is now propagated and stored in the Sequence and Sequence_2D GUI elements. Some debugging print outs have also been removed. 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=16241&r1=16240&r2=16241&view=diff ============================================================================== --- branches/uf_redesign/gui/wizard_elements.py (original) +++ branches/uf_redesign/gui/wizard_elements.py Fri May 11 18:38:32 2012 @@ -497,6 +497,7 @@ self.min = min self.max = max self.single_value = single_value + self.can_be_none = can_be_none # The sequence types. if seq_type == 'list': @@ -762,7 +763,7 @@ self.titles = titles # Initialise the base class. - Sequence.__init__(self, name=name, default=default, parent=parent, sizer=sizer, element_type=element_type, seq_type=seq_type, value_type=value_type, dim=dim, min=min, max=max, desc=desc, combo_choices=combo_choices, combo_data=combo_data, combo_list_size=combo_list_size, tooltip=tooltip, divider=divider, padding=padding, spacer=spacer, read_only=read_only) + Sequence.__init__(self, name=name, default=default, parent=parent, sizer=sizer, element_type=element_type, seq_type=seq_type, value_type=value_type, dim=dim, min=min, max=max, desc=desc, combo_choices=combo_choices, combo_data=combo_data, combo_list_size=combo_list_size, tooltip=tooltip, divider=divider, padding=padding, spacer=spacer, read_only=read_only, can_be_none=can_be_none) def open_dialog(self, event): @@ -1156,9 +1157,7 @@ title = "%s%s" % (upper(self.name[0]), self.name[1:]) # Add the columns. - print `self.dim` for i in range(self.dim[1]): - print `i` self.sequence.InsertColumn(i, self.titles[i]) self.sequence.SetColumnWidth(i, self.width/self.dim[1])