mailr14294 - /branches/gui_testing/gui/results_viewer.py


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

Header


Content

Posted by edward on August 09, 2011 - 14:49:
Author: bugman
Date: Tue Aug  9 14:49:29 2011
New Revision: 14294

URL: http://svn.gna.org/viewcvs/relax?rev=14294&view=rev
Log:
The refreshing of the results viewer window is now thread safe.


Modified:
    branches/gui_testing/gui/results_viewer.py

Modified: branches/gui_testing/gui/results_viewer.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/results_viewer.py?rev=14294&r1=14293&r2=14294&view=diff
==============================================================================
--- branches/gui_testing/gui/results_viewer.py (original)
+++ branches/gui_testing/gui/results_viewer.py Tue Aug  9 14:49:29 2011
@@ -261,7 +261,14 @@
 
 
     def refresh(self):
-        """Update the list of results on choosing a data pipe."""
+        """Update the list of result files."""
+
+        # Thread safe.
+        wx.CallAfter(self.refresh_safe)
+
+
+    def refresh_safe(self):
+        """Update the list of result files (thread safe)."""
 
         # Acquire the pipe lock.
         status.pipe_lock.acquire()




Related Messages


Powered by MHonArc, Updated Tue Aug 09 15:00:02 2011