git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45709
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
# Set color of highlighted item back to normal
if hl and hl.item:
if hl.item != parentItem:
# Set color of highlighted item back to normal
if hl and hl.item:
if hl.item != parentItem:
- g.tree.SetItemTextColour(hl.item, g.tree.itemColour)
+ if hasattr(g.tree, 'itemColour'):
+ g.tree.SetItemTextColour(hl.item, g.tree.itemColour)
# Highlight future parent
g.tree.itemColour = g.tree.GetItemTextColour(parentItem) # save current
g.testWin.highLightDT = updateHL(hl, HighLightDTBox, pos, size)
# Highlight future parent
g.tree.itemColour = g.tree.GetItemTextColour(parentItem) # save current
g.testWin.highLightDT = updateHL(hl, HighLightDTBox, pos, size)