mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Ensure Tree Mixin text visibility against a white background
This commit is contained in:
@@ -84,13 +84,13 @@ class DemoTreeMixin(treemixin.VirtualTree, treemixin.DragAndDrop,
|
||||
def OnGetItemTextColour(self, indices):
|
||||
# Show how to change the item text colour. In this case second level
|
||||
# items are coloured red and third level items are blue. All other
|
||||
# items have the default text colour.
|
||||
# items are black
|
||||
if len(indices) % 2 == 0:
|
||||
return wx.RED
|
||||
elif len(indices) % 3 == 0:
|
||||
return wx.BLUE
|
||||
else:
|
||||
return super(DemoTreeMixin, self).OnGetItemTextColour(indices)
|
||||
return wx.BLACK
|
||||
|
||||
def OnGetItemBackgroundColour(self, indices):
|
||||
# Show how to change the item background colour. In this case the
|
||||
|
||||
Reference in New Issue
Block a user