Skip to content

Commit d80b198

Browse files
committed
WX NamedColour changed name to Colour
1 parent d5c4df3 commit d80b198

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,10 @@ def draw_rubberband(self, event, x0, y0, x1, y1):
17131713
rubberBandColor = '#C0C0FF' # or load from config?
17141714

17151715
# Set a pen for the border
1716-
color = wx.NamedColour(rubberBandColor)
1716+
if wxc.is_phoenix:
1717+
color = wx.Colour(rubberBandColor)
1718+
else:
1719+
color = wx.NamedColour(rubberBandColor)
17171720
dc.SetPen(wx.Pen(color, 1))
17181721

17191722
# use the same color, plus alpha for the brush

0 commit comments

Comments
 (0)