Delete item from wxListCtrl

Discussion in 'Python' started by Joost van Rooij, Jul 4, 2003.

  1. Hi,

    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?

    Joost van Rooij, Jul 4, 2003
    1. Advertisements

  2. object that returns the index of the selection.
    Yep, I tested it, and it worked!
    thanx a lot!
    Joost van Rooij, Jul 7, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.