Accessing choices in a wx.Choice control?

Is there a way to access and/or change the choices in a wx.Choice
control? For example, I'd like to do something like:

if 'red' in choiceCtrl.choices :
  doStuff()

  Not directly, but you can use FindString('red') to do the same.

choiceCtrl.SetChoices(['red', 'yellow', 'green'])

  You have to do this in two steps:

choiceCtrl.Clear()
choiceCtrl.AppendItems(['red', 'yellow', 'green'])

  BTW, what you want to do can be done directly in Dabo, our framework that wraps wxPython. The class that wraps wx.Choice is called 'dDropdownList', and it allows direct access to the the 'Choices' property as you have described. It just seems like a much more natural way to work with controls that contain lists.

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://dabodev.com/
  Come to PyCon!!!! http://www.python.org/pycon/2005/

···

On Mar 5, 2005, at 2:37 PM, Count Down wrote: