From: Just van Rossum Date: Mon, 4 Feb 2002 11:53:53 +0000 (+0000) Subject: Flush screen buffer upon console.flush() and output.flush(). X-Git-Tag: v2.3c1~6741 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e7203855e4afa4ff1f33af8f647d768d26bd97c;p=python Flush screen buffer upon console.flush() and output.flush(). This fixes bug #511992. --- diff --git a/Mac/Tools/IDE/PyConsole.py b/Mac/Tools/IDE/PyConsole.py index 6c0ecd7134..23f301b4ef 100644 --- a/Mac/Tools/IDE/PyConsole.py +++ b/Mac/Tools/IDE/PyConsole.py @@ -108,6 +108,8 @@ class ConsoleTextWidget(W.EditText): self._buf = "" self.ted.WEClearUndo() self.updatescrollbars() + if Qd.QDIsPortBuffered(self._parentwindow.wid): + Qd.QDFlushPortBuffer(self._parentwindow.wid, None) def selection_ok(self): selstart, selend = self.getselection() @@ -298,6 +300,8 @@ class PyOutput: self._buf = "" self.w.outputtext.updatescrollbars() self.w.outputtext.ted.WEFeatureFlag(WASTEconst.weFReadOnly, 1) + if Qd.QDIsPortBuffered(self.w.wid): + Qd.QDFlushPortBuffer(self.w.wid, None) def show(self): if self.closed: