mailr26543 - /trunk/gui/interpreter.py


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

Header


Content

Posted by edward on November 12, 2014 - 11:45:
Author: bugman
Date: Wed Nov 12 11:45:54 2014
New Revision: 26543

URL: http://svn.gna.org/viewcvs/relax?rev=26543&view=rev
Log:
Important bug fix for racing causing the GUI to freeze.

This is really only seen in the GUI tests on MS Windows systems, as a user 
could never be fast
enough with the mouse.  The GUI interpreter flush() method for ensuring that 
all user functions in
the queue have been cleared now calls wx.Yield() to force all wxPython events 
to also be flushed.
This change will avoid random freezing of the relax test suite.


Modified:
    trunk/gui/interpreter.py

Modified: trunk/gui/interpreter.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/interpreter.py?rev=26543&r1=26542&r2=26543&view=diff
==============================================================================
--- trunk/gui/interpreter.py    (original)
+++ trunk/gui/interpreter.py    Wed Nov 12 11:45:54 2014
@@ -167,6 +167,9 @@
             while status.exec_lock.locked():
                 sleep(0.1)
 
+        # Force the GUI to yield (to prevent racing, especially in the GUI 
tests).
+        wx.Yield()
+
         # Debugging.
         if status.debug:
             sys.stdout.write("debug> GUI interpreter:  Flushed.\n")




Related Messages


Powered by MHonArc, Updated Wed Nov 12 12:00:03 2014