mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Fix vlbox test on Python 3
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user