diff options
author | Just van Rossum <just@letterror.com> | 2002-02-04 11:53:53 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2002-02-04 11:53:53 (GMT) |
commit | 4e7203855e4afa4ff1f33af8f647d768d26bd97c (patch) | |
tree | dbc541e7b62821e6506d0937df307e58fa16b8ae | |
parent | 2dcec0c86d567ced8b930bec09e067d7cf68e6e3 (diff) | |
download | cpython-4e7203855e4afa4ff1f33af8f647d768d26bd97c.zip cpython-4e7203855e4afa4ff1f33af8f647d768d26bd97c.tar.gz cpython-4e7203855e4afa4ff1f33af8f647d768d26bd97c.tar.bz2 |
Flush screen buffer upon console.flush() and output.flush().
This fixes bug #511992.
-rw-r--r-- | Mac/Tools/IDE/PyConsole.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PyConsole.py b/Mac/Tools/IDE/PyConsole.py index 6c0ecd7..23f301b 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: |