Author: bugman Date: Wed Jan 27 18:06:30 2010 New Revision: 10449 URL: http://svn.gna.org/viewcvs/relax?rev=10449&view=rev Log: Variable name clash fix. The box sizer for the structure GUI element has been renamed to sizer, as box is an arg to add_pdb_selection(). Modified: branches/bieri_gui/gui_bieri/analyses/auto_model_free.py Modified: branches/bieri_gui/gui_bieri/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_model_free.py?rev=10449&r1=10448&r2=10449&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/analyses/auto_model_free.py (original) +++ branches/bieri_gui/gui_bieri/analyses/auto_model_free.py Wed Jan 27 18:06:30 2010 @@ -254,17 +254,17 @@ button.SetMinSize((103, 27)) # Layout. - box = wx.BoxSizer(wx.HORIZONTAL) - - box.Add(self.text_structure, 0, wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) - box.Add(self.textctrl_structure, 0, wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) - box.Add(button, 0, wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 10) + sizer = wx.BoxSizer(wx.HORIZONTAL) + + sizer.Add(self.text_structure, 0, wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) + sizer.Add(self.textctrl_structure, 0, wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) + sizer.Add(button, 0, wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 10) # Bind the events. self.gui.Bind(wx.EVT_BUTTON, self.textctrl_structure.open_file, button) # Add the element to the box. - box.Add(box, 1, wx.EXPAND, 0) + box.Add(sizer, 1, wx.EXPAND, 0) def add_relax_data_input(self, box):