Resetting all the choice in a wx.Choice?

Christopher Barker Chris.Barker at noaa.gov
Fri Dec 22 14:00:59 PST 2006


Is there a one step way to reset the choices in a wx.Choice?

It looks like I need to do:

MyChoice.Clear
for c in Choices:
     MyChoice.append(c)

but I'd much rather do:

MyChoice.SetChoices(Choices)

Is there a method for that I'm not finding?

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list