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
|
line = line - 1 # Start at 0 in stc, but on screen count is 1
|
||||||
pos = self.control.GetLineIndentPosition(line)
|
pos = self.control.GetLineIndentPosition(line)
|
||||||
last = self.control.GetLineEndPosition(line)
|
last = self.control.GetLineEndPosition(line)
|
||||||
self.control.StartStyling(pos,31)
|
self.control.StartStyling(pos)
|
||||||
self.control.SetStyling(last-pos,self.errorstyle)
|
self.control.SetStyling(last-pos,self.errorstyle)
|
||||||
|
|
||||||
def ClearErrors(self):
|
def ClearErrors(self):
|
||||||
|
@ -217,7 +217,7 @@ class ErrorWindow(wx.Dialog):
|
|||||||
sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5)
|
sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5)
|
||||||
|
|
||||||
line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
|
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 = ""
|
etxt = ""
|
||||||
prefix = "error: "
|
prefix = "error: "
|
||||||
@ -230,7 +230,7 @@ class ErrorWindow(wx.Dialog):
|
|||||||
sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5)
|
sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5)
|
||||||
|
|
||||||
line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
|
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()
|
btnsizer = wx.StdDialogButtonSizer()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user