def _fillDictsList(self): dicts = DictsFinder(getSpellDirList()).getLangList() dicts.sort() selectedDicts = filter(lambda item: item in dicts, self._getDictsFromConfig()) self.dictsList.Clear() self.dictsList.AppendItems(dicts) self.dictsList.SetCheckedStrings(selectedDicts)
def _fillDictsList(self): dicts = DictsFinder(getSpellDirList()).getLangList() dicts.sort() selectedDicts = [item for item in self._getDictsFromConfig() if item in dicts] self.dictsList.Clear() self.dictsList.AppendItems(dicts) self.dictsList.SetCheckedStrings(selectedDicts)
def _fillDictsList(self): dicts = DictsFinder(getSpellDirList()).getLangList() dicts.sort() selectedDicts = [ item for item in self._getDictsFromConfig() if item in dicts ] self.dictsList.Clear() self.dictsList.AppendItems(dicts) self.dictsList.SetCheckedStrings(selectedDicts)
def _fillDictsList (self): dicts = DictsFinder (getSpellDirList()).getLangList() dicts.sort() selectedDicts = filter ( lambda item: item in dicts, self._getDictsFromConfig()) self.dictsList.Clear() self.dictsList.AppendItems (dicts) self.dictsList.SetCheckedStrings (selectedDicts)