Author: bugman Date: Wed Jul 27 09:46:04 2011 New Revision: 13921 URL: http://svn.gna.org/viewcvs/relax?rev=13921&view=rev Log: The GUI user functions now show a busy cursor when loading. Modified: branches/gui_testing/gui/user_functions/base.py Modified: branches/gui_testing/gui/user_functions/base.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/base.py?rev=13921&r1=13920&r2=13921&view=diff ============================================================================== --- branches/gui_testing/gui/user_functions/base.py (original) +++ branches/gui_testing/gui/user_functions/base.py Wed Jul 27 09:46:04 2011 @@ -89,6 +89,12 @@ @type gui: wx.Frame instance """ + # Yield to allow the cursor to be changed. + wx.Yield() + + # Change the cursor to waiting. + wx.BeginBusyCursor() + # Store the args. self.gui = gui @@ -109,6 +115,9 @@ # Execute the base class method. super(UF_page, self).__init__(parent) + + # Reset the cursor. + wx.EndBusyCursor() def _format_text(self, text):