summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/PyConsole.py
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-02-04 11:53:53 (GMT)
committerJust van Rossum <just@letterror.com>2002-02-04 11:53:53 (GMT)
commit4e7203855e4afa4ff1f33af8f647d768d26bd97c (patch)
treedbc541e7b62821e6506d0937df307e58fa16b8ae /Mac/Tools/IDE/PyConsole.py
parent2dcec0c86d567ced8b930bec09e067d7cf68e6e3 (diff)
downloadcpython-4e7203855e4afa4ff1f33af8f647d768d26bd97c.zip
cpython-4e7203855e4afa4ff1f33af8f647d768d26bd97c.tar.gz
cpython-4e7203855e4afa4ff1f33af8f647d768d26bd97c.tar.bz2
Flush screen buffer upon console.flush() and output.flush().
This fixes bug #511992.
Diffstat (limited to 'Mac/Tools/IDE/PyConsole.py')
-rw-r--r--Mac/Tools/IDE/PyConsole.py4
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: