Author: bugman Date: Sun Aug 7 13:57:30 2011 New Revision: 14236 URL: http://svn.gna.org/viewcvs/relax?rev=14236&view=rev Log: The pipe editor and spin viewer thread safe update calls are now followed by wx.Yield(). This causes all events to be flushed prior to the method exiting. Modified: branches/gui_testing/gui/pipe_editor.py branches/gui_testing/gui/spin_viewer/frame.py Modified: branches/gui_testing/gui/pipe_editor.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/pipe_editor.py?rev=14236&r1=14235&r2=14236&view=diff ============================================================================== --- branches/gui_testing/gui/pipe_editor.py (original) +++ branches/gui_testing/gui/pipe_editor.py Sun Aug 7 13:57:30 2011 @@ -395,6 +395,9 @@ # Thread safe. wx.CallAfter(self.update_grid_safe) + # Flush the events. + wx.Yield() + def update_grid_safe(self): """Update the grid with the pipe data.""" 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=14236&r1=14235&r2=14236&view=diff ============================================================================== --- branches/gui_testing/gui/spin_viewer/frame.py (original) +++ branches/gui_testing/gui/spin_viewer/frame.py Sun Aug 7 13:57:30 2011 @@ -247,7 +247,11 @@ @type event: wx event """ + # Thread safe. wx.CallAfter(self.refresh_safe) + + # Flush the events. + wx.Yield() def refresh_safe(self):