Author: bugman Date: Fri Jul 29 22:53:12 2011 New Revision: 14018 URL: http://svn.gna.org/viewcvs/relax?rev=14018&view=rev Log: The setting up of a new analysis tab now uses freezing and thawing and the busy cursor. Modified: branches/gui_testing/gui/analyses/__init__.py Modified: branches/gui_testing/gui/analyses/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=14018&r1=14017&r2=14018&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/__init__.py (original) +++ branches/gui_testing/gui/analyses/__init__.py Fri Jul 29 22:53:12 2011 @@ -318,6 +318,10 @@ error_message("Relaxation curve fitting is not available. Try compiling the C modules on your platform.") return + # Freeze the GUI. + wx.BeginBusyCursor() + self.gui.Freeze() + # Starting from the initial state. if self.init_state: # A new sizer for the notebook (to replace the current sizer). @@ -378,6 +382,10 @@ # Reset the main window layout. self.gui.Layout() + + # Thaw the GUI. + self.gui.Thaw() + wx.EndBusyCursor() # Notify the observers of the change. status.observers.gui_analysis.notify()