# HG changeset patch # User Edouard Tisserant # Date 1667596182 -3600 # Node ID 5ba5a0177fb3ca3020f1005ff94ebfae2f0670ad # Parent e0d6f5f0dcc291b9e2f5ac516d9c56191e69b9d9 IDE: Fix use of deprecated wx.NamedColour diff -r e0d6f5f0dcc2 -r 5ba5a0177fb3 controls/LogViewer.py --- a/controls/LogViewer.py Fri Nov 04 17:38:37 2022 +0100 +++ b/controls/LogViewer.py Fri Nov 04 22:09:42 2022 +0100 @@ -144,7 +144,7 @@ width, height = self.GetClientSize() - gc.SetPen(wx.Pen(wx.NamedColour("GREY"), 3)) + gc.SetPen(wx.Pen(wx.Colour("GREY"), 3)) gc.SetBrush(wx.GREY_BRUSH) gc.DrawLines(ArrowPoints(wx.TOP, width * 0.75, width * 0.5, 2, (width + height) // 4 - 3)) @@ -161,7 +161,7 @@ if self.Parent.IsMessagePanelBottom(): exclusion_rect.height = height - width - exclusion_rect.y if exclusion_rect != thumb_rect: - colour = wx.NamedColour("LIGHT GREY") + colour = wx.Colour("LIGHT GREY") gc.SetPen(wx.Pen(colour)) gc.SetBrush(wx.Brush(colour)) @@ -215,7 +215,7 @@ def Draw(self, dc): dc.SetPen(wx.TRANSPARENT_PEN) - dc.SetBrush(wx.Brush(wx.NamedColour("LIGHT GREY"))) + dc.SetBrush(wx.Brush(wx.Colour("LIGHT GREY"))) dc.DrawRectangle(self.Position.x, self.Position.y, self.Size.width, self.Size.height)