Question on wxListBox ...

I can get the list of item indexes that are selected in the multi-selection ListBox with GetSelections.
After that,How to get the matching string using each index from the ListBoxwith GetString? i need simple example or,...

regards,

sels=listbox.GetSelections()
labels=
for x in sels:
  labels.append(listbox.GetString(x))

···

On Tuesday 13 May 2003 02:35 am, 이재구 wrote:

I can get the list of item indexes that are selected in the multi-selection
ListBox with GetSelections. After that,How to get the matching string
using each index from the ListBoxwith GetString? i need simple example
or,...

regards,

--
  UC

--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417

??? wrote:

I can get the list of item indexes that are selected in the
multi-selection ListBox with GetSelections. After that,How to get the
matching string using each index from the ListBoxwith GetString? i
need simple example or,...

Yes, use GetString. The wxListBox sample in the demo shows it being used.

···

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