diff -r 36934591f6eb -r 223a91584172 controls/CustomStyledTextCtrl.py --- a/controls/CustomStyledTextCtrl.py Wed Apr 12 23:02:41 2023 +0200 +++ b/controls/CustomStyledTextCtrl.py Thu Apr 13 22:31:33 2023 +0200 @@ -114,3 +114,10 @@ def AppendText(self, text): self.GotoPos(self.GetLength()) self.AddText(text) + + if wx.VERSION < (4, 1, 0): + def StartStyling(self, pos, mask=0xff): + wx.stc.StyledTextCtrl.StartStyling(self, pos, mask) + else: + def StartStyling(self, pos, *ignored): + wx.stc.StyledTextCtrl.StartStyling(self, pos)