From e51960983472cd6e157b859012141fa1d78c84d3 Mon Sep 17 00:00:00 2001 From: eladeyal Date: Tue, 21 May 2019 11:30:10 +0300 Subject: [PATCH] change consts used for style Based on https://wxpython.org/Phoenix/docs/html/wx.richtext.RichTextCtrl.html#wx.richtext.RichTextCtrl the style constants used are wrong. --- gooey/gui/components/widgets/richtextconsole.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gooey/gui/components/widgets/richtextconsole.py b/gooey/gui/components/widgets/richtextconsole.py index d73ea67..9b4a4f7 100644 --- a/gooey/gui/components/widgets/richtextconsole.py +++ b/gooey/gui/components/widgets/richtextconsole.py @@ -38,7 +38,7 @@ class RichTextConsole(wx.richtext.RichTextCtrl): """ def __init__(self, parent): - super(wx.richtext.RichTextCtrl, self).__init__(parent, -1, "", style=wx.TE_MULTILINE | wx.TE_READONLY) + super(wx.richtext.RichTextCtrl, self).__init__(parent, -1, "", style=wx.richtext.RE_MULTILINE | wx.richtext.RE_READONLY) self.esc = colored.style.ESC self.end = colored.style.END self.noop = lambda *args, **kwargs: None