From 7c5bdc431cfe4dc27115ad874ac4f9d50b7fcbe3 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Tue, 27 Oct 2020 23:46:03 +0100 Subject: [PATCH] Fixing some wxPython4 errors for highlighting spdl errors. --- gui/Gui/Editor.py | 2 +- gui/Gui/Scytherthread.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/Gui/Editor.py b/gui/Gui/Editor.py index b3e093f..d5aeb0a 100644 --- a/gui/Gui/Editor.py +++ b/gui/Gui/Editor.py @@ -176,7 +176,7 @@ class EditorStc(Editor): line = line - 1 # Start at 0 in stc, but on screen count is 1 pos = self.control.GetLineIndentPosition(line) last = self.control.GetLineEndPosition(line) - self.control.StartStyling(pos,31) + self.control.StartStyling(pos) self.control.SetStyling(last-pos,self.errorstyle) def ClearErrors(self): diff --git a/gui/Gui/Scytherthread.py b/gui/Gui/Scytherthread.py index 9db1391..22bc681 100644 --- a/gui/Gui/Scytherthread.py +++ b/gui/Gui/Scytherthread.py @@ -217,7 +217,7 @@ class ErrorWindow(wx.Dialog): sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5) line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL) - sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5) + sizer.Add(line, 0, wx.GROW|wx.RIGHT|wx.TOP, 5) etxt = "" prefix = "error: " @@ -230,7 +230,7 @@ class ErrorWindow(wx.Dialog): sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5) line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL) - sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5) + sizer.Add(line, 0, wx.GROW|wx.RIGHT|wx.TOP, 5) btnsizer = wx.StdDialogButtonSizer()