Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e72038

Browse files
committed
Flush screen buffer upon console.flush() and output.flush().
This fixes bug #511992.
1 parent 2dcec0c commit 4e72038

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Mac/Tools/IDE/PyConsole.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def flush(self):
108108
self._buf = ""
109109
self.ted.WEClearUndo()
110110
self.updatescrollbars()
111+
if Qd.QDIsPortBuffered(self._parentwindow.wid):
112+
Qd.QDFlushPortBuffer(self._parentwindow.wid, None)
111113

112114
def selection_ok(self):
113115
selstart, selend = self.getselection()
@@ -298,6 +300,8 @@ def flush(self):
298300
self._buf = ""
299301
self.w.outputtext.updatescrollbars()
300302
self.w.outputtext.ted.WEFeatureFlag(WASTEconst.weFReadOnly, 1)
303+
if Qd.QDIsPortBuffered(self.w.wid):
304+
Qd.QDFlushPortBuffer(self.w.wid, None)
301305

302306
def show(self):
303307
if self.closed:

0 commit comments

Comments
 (0)