Merge pull request #1127 from swt2c/fix_vlbox_test

Fix vlbox test on Python 3
(cherry picked from commit 8c9b379bc4)
This commit is contained in:
Robin Dunn
2019-01-15 15:14:49 -08:00
parent 13d32e3ef5
commit fde6792936

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