Just iterate. Something like…
for i in range(listCtrl.GetCount()):
listCtrl.SetSelection(i)
You might want to look at the inheritance tree in the documentation. wxListBox inherits from wxControlWithItems, which has most of its functions. From the docs:
“Sets the selection to the given item n or removes the selection entirely if n == wxNOT_FOUND.
Note that this does not cause any command events to be emitted nor does it deselect any other items in the controls which support multiple selections.”
If you’re only going by the “new wxPyDocs” – those are great. But you should also look at the “Online wxDocs” for the basic stuff. (Or download the binary for your OS, whatever it is-- the html help docs are great for basic reference)
···
On 7/20/07, syhsolutions@comcast.net <syhsolutions@comcast.net > wrote:
Hello again,
Does anyone know how to select all for a listbox. I am trying to bind this event to a button. I cant find anything for listbox, I did find it for listctrl thoughThanks again