mailr13659 - /branches/gui_testing/gui/spin_viewer/frame.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 - 19:36:
Author: bugman
Date: Fri Jul 15 19:36:44 2011
New Revision: 13659

URL: http://svn.gna.org/viewcvs/relax?rev=13659&view=rev
Log:
The spin viewer now sets the busy cursor when updating the tree view.

This gives better feedback when many spins are loaded.


Modified:
    branches/gui_testing/gui/spin_viewer/frame.py

Modified: branches/gui_testing/gui/spin_viewer/frame.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/spin_viewer/frame.py?rev=13659&r1=13658&r2=13659&view=diff
==============================================================================
--- branches/gui_testing/gui/spin_viewer/frame.py (original)
+++ branches/gui_testing/gui/spin_viewer/frame.py Fri Jul 15 19:36:44 2011
@@ -156,6 +156,9 @@
         @type event:    wx event
         """
 
+        # Change the cursor to busy.
+        wx.BeginBusyCursor()
+
         # Update the data pipe selector.
         self.update_pipes()
 
@@ -164,6 +167,9 @@
 
         # Redisplay the container.
         self.container.display(self.tree_panel.get_info())
+
+        # Reset the cursor.
+        wx.EndBusyCursor()
 
 
     def handler_close(self, event):
@@ -238,6 +244,10 @@
         @param event:   The wx event.
         @type event:    wx event
         """
+
+        # Change the cursor to busy.
+        wx.Yield()
+        wx.BeginBusyCursor()
 
         # Init.
         pipe_switch = False
@@ -272,3 +282,6 @@
 
         # Set the pipe name to the cdp.
         self.pipe_name.SetValue(pipe)
+
+        # Reset the cursor.
+        wx.EndBusyCursor()




Related Messages


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