Is there a single method that returns the list of items contained in a wxPython listBox?
I cant seem to find anything anywhere in the documentation or anywhere for that matter. All that I can think to do is to set the selection to all of the items and then get the selected items, though seems like an ugly roundabout way of doing something that should be simple.
Update:
As pointed out by jeremy the way to do this is with GetStrings()
e.g.
listBoxList = yourListBox.GetStrings()
wx.ListBox
is derived fromwx.ControlWithitems
. I think GetStrings() is what you need.You can get a list of the strings in the listbox like: