> I have turned on lable editing with wxTR_EDIT_LABELS but the
> item text is not being updated. When I hit return after
> an edit, the lable text reverts to what it was before
> the edit.
> I hooked the end edit event and using that I can catch
> the fact that the lable has been changed. I can also
> set it to a new value:
> def OnEndwxTreeLabelEdit(self, event):
> My problem is this: how do I find out what the edited value
> is? GetItemText() returns the pre-edit text.
See the demo. There is a method in the event object (GetLabel I think) that
returns the new text.