projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1002aba
)
Another fix for: AttributeError: 'XML_Tree' object has no attribute 'itemColour'
author
Robin Dunn
<robin@alldunn.com>
Sun, 29 Apr 2007 00:05:34 +0000
(
00:05
+0000)
committer
Robin Dunn
<robin@alldunn.com>
Sun, 29 Apr 2007 00:05:34 +0000
(
00:05
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45709
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
wxPython/wx/tools/XRCed/tree.py
patch
|
blob
|
blame
|
history
diff --git
a/wxPython/wx/tools/XRCed/tree.py
b/wxPython/wx/tools/XRCed/tree.py
index becfcc423ae8c1076ac92b75f6c8126a1483c00b..826a5f79871e2e00977b5cdcf9292e088016b3f1 100644
(file)
--- a/
wxPython/wx/tools/XRCed/tree.py
+++ b/
wxPython/wx/tools/XRCed/tree.py
@@
-1346,7
+1346,8
@@
class DropTarget(wx.PyDropTarget):
# 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)