Author: bugman Date: Fri Jun 10 10:08:05 2011 New Revision: 12951 URL: http://svn.gna.org/viewcvs/relax?rev=12951&view=rev Log: Split the auto model-free build_main_box() method into two. The left hand box is now created by build_left_box(), to reflect the design of build_right_box() and to allow build_main_box() to be abstracted into a base class method for all analysis frames to use. Modified: 1.3/gui/analyses/auto_model_free.py Modified: 1.3/gui/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/auto_model_free.py?rev=12951&r1=12950&r2=12951&view=diff ============================================================================== --- 1.3/gui/analyses/auto_model_free.py (original) +++ 1.3/gui/analyses/auto_model_free.py Fri Jun 10 10:08:05 2011 @@ -699,11 +699,11 @@ event.Skip() - def build_main_box(self, box): - """Construct the highest level box to pack into the automatic model-free analysis frame. - - @param box: The horizontal box element to pack the elements into. - @type box: wx.BoxSizer instance + def build_left_box(self): + """Construct the left hand box to pack into the main model-free box. + + @return: The left hand box element containing the bitmap and about button to pack into the main model-free box. + @rtype: wx.BoxSizer instance """ # Build the left hand box. @@ -739,7 +739,19 @@ # Bottom spacer. left_box.AddSpacer(10) - # Add to the main box. + # Return the packed box. + return left_box + + + def build_main_box(self, box): + """Construct the highest level box to pack into the automatic model-free analysis frame. + + @param box: The horizontal box element to pack the elements into. + @type box: wx.BoxSizer instance + """ + + # Build the left hand box and add to the main box. + left_box = self.build_left_box() box.Add(left_box, 0, wx.ADJUST_MINSIZE, 0) # Central spacer.