def OnBoardVariantFieldChange(self, event):
    selection = self.boardVariantFieldBox.Value
    if ((not selection) or (selection == self.NONE_STRING) or (self.extra_field_data is None)):
        self.boardVariantWhitelist.Clear()
        self.boardVariantBlacklist.Clear()
        return
    variant_set = set()
    for (_, field_dict) in self.extra_field_data[1].items():
        if (selection in field_dict):
            variant_set.add(field_dict[selection])
    self.boardVariantWhitelist.SetItems(list(variant_set))
    self.boardVariantBlacklist.SetItems(list(variant_set))
def OnBoardVariantFieldChange(self, event):
    selection = self.boardVariantFieldBox.Value
    if ((not selection) or (selection == self.NONE_STRING) or (self.extra_field_data is None)):
        self.boardVariantWhitelist.Clear()
        self.boardVariantBlacklist.Clear()
        return
    variant_set = set()
    for (_, field_dict) in self.extra_field_data[1].items():
        if (selection in field_dict):
            variant_set.add(field_dict[selection])
    self.boardVariantWhitelist.SetItems(list(variant_set))
    self.boardVariantBlacklist.SetItems(list(variant_set))