Re: Screen updating issue in a TreeEditor
What version of Traits? In 3.0 the tree demo works fine...if I update an
employee name, all identical nodes update simultaneously. It would be a
mistake to assume that 3.0 only contains new features. It also contains
many bug fixes as well...
Danny Shevitz wrote:
> In a TreeEditor I'm trying to do something that may be a little funky, but it
> makes in my application. I'm trying to display the same node (actually subtree)
> at multiple locations in the same tree editor.
> In my app, it's analagous to having a view of the
> file system with symbolic links to a directory. The same tree structure is
> evident multiple times even though it really only exists once. The same issue
> appears in the TreeDemo code, where the same employee appears multiple
> times in the tree.
> The issue is that while the underlying trait is consistent between different
> instances in the tree, the visual display of the tree nodes is not. In the tree
> demo, change the name of an employee and you will see it only changes in the
> tree in one spot. Underneath the hood, my suspicion is the underlying trait
> is changing, but the wx.TreeItem is not. It feels like a proper implementation
> would employ delegation somewhere so that the tree items really do always point
> to the same underlying item.
> Am I doing something stupid as usual, and is this remediable, or is this just
> not supported?
> I'm attaching sample code. On the "a.xml" tab, the wow node is in fact the