ListCtrl Problem

Hey all. Could anyone show me how to iterate over all user-selected
items on a multi-selection list control? I have been trying to use
ListViews' GetFirstSelected() and GetNextSelected() methods, but am
having trouble getting them to work right. I also tried using ListCtrls'
GetNextItem() method, still to no avail. Thanks for the help fella's.

Regards,
Eugene

ec wrote:

Hey all. Could anyone show me how to iterate over all user-selected
items on a multi-selection list control? I have been trying to use
ListViews' GetFirstSelected() and GetNextSelected() methods, but am
having trouble getting them to work right. I also tried using ListCtrls'
GetNextItem() method, still to no avail. Thanks for the help fella's.

  index = list.GetFirstSelected()
  while index != -1:
    # do something with index
    index = list.GetNextSelected(index)

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!