A problem with wxTreeCtrl.GetItemText()

Eric ericcoetzee at gmail.com
Mon Apr 2 13:56:43 PDT 2007


Andrea Gavana <andrea.gavana <at> gmail.com> writes:

Andrea,

> I believe you should use something like:
> 
> def OnEndEdit(self, event):
> 
>     if event.IsEditCancelled():
>         return
> 
>     itemText = event.GetLabel()

Thanks.

So i should not call GetItemText() on the tree but GetLabel() on the event.

Cheers - will try it.





More information about the wxpython-users mailing list