I am displaying a tree, and I need to show which item is selected.
Of course the simplistic solution is to
item.addStyleName("itemhighlighted") in the onTreeItemSelected(self., item):
And that works fine until another item is selected. Then both are
highlighted.
I have tried several approaches--most of them kill the action of
onTreeItemSelected() entirely, and the removal of the StyleName from any
parent objects fits that category, as well as trying to __iter__() over the
tree and remove the StyleName from the children of the root .... I am not
getting any errors in translation, so I wonder where to go from here.
Michael
--