From ae86c071088e4524862ba3477fadbab5758be076 Mon Sep 17 00:00:00 2001 From: eladeyal Date: Tue, 21 May 2019 18:58:02 +0300 Subject: [PATCH] fix rich console was not appending - fix #433 --- gooey/gui/components/widgets/richtextconsole.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gooey/gui/components/widgets/richtextconsole.py b/gooey/gui/components/widgets/richtextconsole.py index 95e4808..2d36c1d 100644 --- a/gooey/gui/components/widgets/richtextconsole.py +++ b/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())