Merge pull request #1127 from swt2c/fix_vlbox_test

Fix vlbox test on Python 3
This commit is contained in:
Robin Dunn
2019-01-15 15:14:49 -08:00
committed by GitHub

View File

@@ -97,7 +97,7 @@ class MyVListBox(wx.VListBox):
color = 'white'
if self.IsSelected(idx):
color = self.GetSelectionBackground()
if not color:
if not color.IsOk():
color = 'navy'
dc.SetPen(wx.Pen(color, 1))
dc.SetBrush(wx.Brush(color))