Author: bugman Date: Wed Aug 17 09:02:54 2011 New Revision: 14395 URL: http://svn.gna.org/viewcvs/relax?rev=14395&view=rev Log: Created Redirect_text.flush() for the relax controller for compatibility with the multi-processor code. The multi-processor code calls sys.stdout.flush() and sys.stderr.flush(), so these need to be mimicked in the Redirect_text pseudo file object class. Modified: branches/gui_testing/gui/controller.py Modified: branches/gui_testing/gui/controller.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/controller.py?rev=14395&r1=14394&r2=14395&view=diff ============================================================================== --- branches/gui_testing/gui/controller.py (original) +++ branches/gui_testing/gui/controller.py Wed Aug 17 09:02:54 2011 @@ -970,6 +970,13 @@ self.stream = stream + def flush(self): + """Simulate the file object flush method.""" + + # Call the log control write method one the GUI is responsive. + wx.CallAfter(self.control.write) + + def write(self, string): """Simulate the file object write method.