Author: bugman Date: Fri Jul 22 10:43:52 2011 New Revision: 13820 URL: http://svn.gna.org/viewcvs/relax?rev=13820&view=rev Log: Attempted to put the model-free auto-analysis into a scrolled panel. The idea is that the analysis panels might be larger than the main app window, so scrolling would be needed to see it all. This will be important in the custom analysis. Modified: branches/gui_testing/gui/analyses/auto_model_free.py Modified: branches/gui_testing/gui/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_model_free.py?rev=13820&r1=13819&r2=13820&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/auto_model_free.py (original) +++ branches/gui_testing/gui/analyses/auto_model_free.py Fri Jul 22 10:43:52 2011 @@ -199,7 +199,7 @@ self.data_index = data_index # The parent GUI element for this class. - self.parent = wx.Panel(notebook, -1) + self.parent = wx.lib.scrolledpanel.ScrolledPanel(notebook, -1) # Pack a sizer into the panel. box_main = wx.BoxSizer(wx.HORIZONTAL) @@ -210,6 +210,10 @@ # Build and pack the main sizer box, then add it to the automatic model-free analysis frame. self.build_main_box(box_centre) + + # Set up the scrolled panel. + self.parent.SetAutoLayout(True) + self.parent.SetupScrolling(scroll_x=False, scroll_y=True) # Register the method for updating the spin count for the completion of user functions. status.observers.gui_uf.register(self.data.pipe_name, self.update_spin_count) @@ -445,7 +449,7 @@ self.max_iter = self.add_spin_element(box, self.parent, text="Maximum interations", default=str(self.data.max_iter), min=25, max=100) # Some spacing. - box.AddSpacer(10) + box.AddStretchSpacer() # Add the execution GUI element. self.button_exec_id = self.add_execute_relax(box, self.execute)