mailr13049 - /branches/gui_testing/gui/relax_gui.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 15, 2011 - 17:08:
Author: bugman
Date: Wed Jun 15 17:08:16 2011
New Revision: 13049

URL: http://svn.gna.org/viewcvs/relax?rev=13049&view=rev
Log:
There is now a waiting cursor for when a state file is being loaded.


Modified:
    branches/gui_testing/gui/relax_gui.py

Modified: branches/gui_testing/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13049&r1=13048&r2=13049&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Wed Jun 15 17:08:16 2011
@@ -600,6 +600,13 @@
             # Don't do anything.
             return
 
+        # Yield to allow the cursor to be changed.
+        wx.Yield()
+
+        # Change the cursor to waiting.
+        orig_cursor = self.GetCursor()
+        self.SetCursor(wx.StockCursor(wx.CURSOR_ARROWWAIT))
+
         # Delete the current tabs.
         while len(self.analyses):
             # Remove the last analysis, until there is nothing left.
@@ -625,6 +632,9 @@
         # Update the core of the GUI to match the new data store.
         self.sync_ds(upload=False)
 
+        # Reset the cursor.
+        self.SetCursor(orig_cursor)
+
 
     def state_save(self):
         """Save the program state."""




Related Messages


Powered by MHonArc, Updated Wed Jun 15 18:00:03 2011