mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
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:
@@ -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