468,136 Members | 1,483 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,136 developers. It's quick & easy.

Delete item from wxListCtrl


I am having problems deleting one item from a list in a wxListCtrl widget.
My thought was to select it as presented below:

def onSelect(self, event):
self.item = event.GetItem()

This won't work, it appaers GetItem() is returning an object while
DeleteItem() requires a long as its input. How do I pass the item to the
DeleteItem function?

Jul 18 '05 #1
1 4401

"Jude Venn" <ju*******@blueyonder.co.uk> wrote in message
haven't checked, but i think there's a GetIndex() method on the event object that returns the index of the selection.

Yep, I tested it, and it worked!
thanx a lot!
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mark Carter | last post: by
3 posts views Thread by Piet | last post: by
reply views Thread by kalyan.abbaraju | last post: by
2 posts views Thread by Jim McGivney | last post: by
3 posts views Thread by NateDawg | last post: by
12 posts views Thread by yufufi | last post: by
27 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.