Author: bugman Date: Mon Aug 1 11:12:04 2011 New Revision: 14027 URL: http://svn.gna.org/viewcvs/relax?rev=14027&view=rev Log: The results display window is now shown at the end of the auto-analysis execution. Modified: branches/gui_testing/gui/analyses/execute.py Modified: branches/gui_testing/gui/analyses/execute.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/execute.py?rev=14027&r1=14026&r2=14027&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/execute.py (original) +++ branches/gui_testing/gui/analyses/execute.py Mon Aug 1 11:12:04 2011 @@ -36,23 +36,26 @@ class Execute(Thread): """The analysis execution object.""" - def __init__(self, gui, data, data_index, thread=True): + def __init__(self, gui, data, data_index, results_display=True, thread=True): """Set up the analysis execution object. - @param gui: The GUI object. - @type gui: wx object - @param data: The data container with all data for the analysis. - @type data: class instance - @param data_index: The index of the analysis in the relax data store. - @type data_index: int - @keyword thread: The flag for turning threading on and off. - @type thread: bool + @param gui: The GUI object. + @type gui: wx object + @param data: The data container with all data for the analysis. + @type data: class instance + @param data_index: The index of the analysis in the relax data store. + @type data_index: int + @keyword results_display: A flag which if True will cause the results display window to be shown at then end of the execution. + @type results_display: bool + @keyword thread: The flag for turning threading on and off. + @type thread: bool """ # Store the args. self.gui = gui self.data = data self.data_index = data_index + self.results_display = results_display # Threaded execution. if thread: @@ -98,6 +101,10 @@ if status.exec_lock.locked(): status.exec_lock.release() + # Display the results viewer. + if self.results_display: + self.gui.analysis.show_results_viewer(None) + def run_analysis(self): """Execute the analysis