If you were using Dabo, you would just write:
MyChoice.Choices = newChoices
Dabo is filled with intelligent things like this. It lets you work the
way you think it should work, instead of constantly having to figure
out the convoluted way the wxWidgets works. I'm glad to see that Robin
is starting to move towards where Dabo has always been with the use of
properties instead of all those getter/setters, but IMO it still has a
long way to go.
···
On 12/22/06, Christopher Barker <Chris.Barker@noaa.gov> wrote:
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?
--
# p.d.