mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Flush screen buffer upon console.flush() and output.flush().
This fixes bug #511992.
This commit is contained in:
parent
2dcec0c86d
commit
4e7203855e
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue