I'm trying to resort a wxTreeListCtrl after a label has been edited. In
essence:
EVT_TREE_END_LABEL_EDIT(self.tree, TreeID, self.OnEndLabelEdit)
def OnEndLabelEdit(self, event):
.
.
node = event.GetItem();
.
.
self.tree.SortChildren(self.tree.GetItemParent(node))
This fails to sort the tree, but if I then re-edit the same label it IS
sorted according to the OLD label. It would seem that when the
EVT_TREE_END_LABEL_EDIT event is triggered, the tree is not yet aware of
the new value of the label.
So: how can I resort a tree after a label has been edited?
Thanks