mailr13651 - /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 July 15, 2011 - 14:45:
Author: bugman
Date: Fri Jul 15 14:45:42 2011
New Revision: 13651

URL: http://svn.gna.org/viewcvs/relax?rev=13651&view=rev
Log:
Simplified the setting of a busy cursor when loading a save state via 
wx.BeginBusyCursor().


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=13651&r1=13650&r2=13651&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Fri Jul 15 14:45:42 2011
@@ -454,8 +454,7 @@
         wx.Yield()
 
         # Change the cursor to waiting.
-        orig_cursor = self.GetCursor()
-        self.SetCursor(wx.StockCursor(wx.CURSOR_ARROWWAIT))
+        wx.BeginBusyCursor()
 
         # Delete the current tabs.
         self.analysis.delete_all()
@@ -476,7 +475,7 @@
         self.sync_ds(upload=False)
 
         # Reset the cursor.
-        self.SetCursor(orig_cursor)
+        wx.EndBusyCursor()
 
 
     def state_save(self):




Related Messages


Powered by MHonArc, Updated Fri Jul 15 16:00:02 2011