Browse Source

fix rich console was not appending - fix #433

pull/473/head
eladeyal 5 years ago
committed by Chris
parent
commit
ae86c07108
1 changed files with 2 additions and 0 deletions
  1. 2
      gooey/gui/components/widgets/richtextconsole.py

2
gooey/gui/components/widgets/richtextconsole.py

@ -64,6 +64,7 @@ class RichTextConsole(wx.richtext.RichTextCtrl):
wx method overriden to capture the terminal control character and translate them into wx styles.
Complexity : o(len(content))
"""
self.SetInsertionPointEnd()
unprocIndex = 0
while True:
# Invariant : unprocIndex is the starting index of the unprocessed part of the buffer
@ -83,3 +84,4 @@ class RichTextConsole(wx.richtext.RichTextCtrl):
unprocIndex = endEsc + 1
# Invariant : unprocessed end of buffer is escape-free, ready to be printed
self.WriteText(content[unprocIndex:])
self.ShowPosition(self.GetInsertionPoint())
Loading…
Cancel
Save