示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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)
示例#4
0
    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)