From 4364279133731a5dda97c978b327c0a50cb8bddc 2008-08-06 15:46:28 From: gvaroquaux Date: 2008-08-06 15:46:28 Subject: [PATCH] Flush the print buffer at the end of a program execution. --- diff --git a/IPython/frontend/wx/wx_frontend.py b/IPython/frontend/wx/wx_frontend.py index 32cf82f..3fd52d1 100644 --- a/IPython/frontend/wx/wx_frontend.py +++ b/IPython/frontend/wx/wx_frontend.py @@ -204,9 +204,12 @@ class WxController(PrefilterFrontEnd, ConsoleWidget): self.running_process.start() # XXX: another one of these polling loops to have a blocking # call + wx.Yield() while self.running_process: wx.Yield() sleep(0.1) + # Be sure to flush the buffer. + self._buffer_flush(event=None) def buffered_write(self, text):