get wxListCtrl from wxListItem?

Pangborn, Andrew (ext. 324) axp at qvii.com
Tue Jan 2 09:51:36 PST 2007


Hopefully I'm just missing something obvious in the API...but how can I obt=
ain a reference to the wxListCtrl from a wxListItem? =


I'm trying to use an editable wxListCtrl (similar to the example in the wxD=
ocs). I have a function bound to the wx.EVT_LIST_END_LABEL_EDIT action. I'd=
 like to update a python object with the data from the listCtrl, but I can'=
t seem to find a way to link back to my python data object from the wxListI=
tem (which I obtain from event.GetItem() ). If I could get the wxListCtrl f=
rom the wxListItem...then it should be fairly straightfoward to store the p=
ython object in a derived class. =


Any thoughts or alternative approaches appreciated - thanks,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200701=
02/8f8b4588/attachment.htm


More information about the wxpython-users mailing list