Fix vlbox test on Python 3

This commit is contained in:
Scott Talbert
2018-11-19 20:43:37 -05:00
parent ff93eb48b3
commit 30daf80f36

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))