Fixing some wxPython4 errors for highlighting spdl errors.
This commit is contained in:
parent
8843e48bfc
commit
7c5bdc431c
@ -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):
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user