dynamic combo box

Hello,

is it possible to have two comboboxes, with the second one dynamically updating it's contents based on the selection of the first. I am sure it is but can not find a way that this can happen. It seems easy enough to append a new entry to a CB but how to completely change it's contents on the fly?

regards,
aaron.

Hello,

is it possible to have two comboboxes, with the second one
dynamically
updating it's contents based on the selection of the first. I
am sure it
is but can not find a way that this can happen. It seems easy
enough to
append a new entry to a CB but how to completely change it's
contents on
the fly?

In the EVT_CHOICE handler for the first combo box, I include the following
code for the second combo box, which populates the control with the values
in a list that was generated based on the first combo box's value:

            self.EpisodeList.Clear()
            self.EpisodeList.Append(' ')
            for (Episode,) in EpisodeIDs:
                self.EpisodeList.Append(Episode)
            self.EpisodeList.SetSelection(0)

HTH,

David