src/eric7/Project/SpellingPropertiesDialog.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9514
2b104ad132a4
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
9 9
10 from PyQt6.QtWidgets import QDialog 10 from PyQt6.QtWidgets import QDialog
11 11
12 from eric7 import Preferences 12 from eric7 import Preferences
13 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes 13 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
14 from eric7.QScintilla.SpellChecker import SpellChecker
14 15
15 from .Ui_SpellingPropertiesDialog import Ui_SpellingPropertiesDialog 16 from .Ui_SpellingPropertiesDialog import Ui_SpellingPropertiesDialog
16 17
17 18
18 class SpellingPropertiesDialog(QDialog, Ui_SpellingPropertiesDialog): 19 class SpellingPropertiesDialog(QDialog, Ui_SpellingPropertiesDialog):
39 self.pelPicker.setDefaultDirectory(project.ppath) 40 self.pelPicker.setDefaultDirectory(project.ppath)
40 self.pelPicker.setFilters(self.tr("Dictionary File (*.dic);;All Files (*)")) 41 self.pelPicker.setFilters(self.tr("Dictionary File (*.dic);;All Files (*)"))
41 42
42 self.project = project 43 self.project = project
43 self.parent = parent 44 self.parent = parent
44
45 from eric7.QScintilla.SpellChecker import SpellChecker
46 45
47 self.spellingComboBox.addItem(self.tr("<default>")) 46 self.spellingComboBox.addItem(self.tr("<default>"))
48 self.spellingComboBox.addItems(sorted(SpellChecker.getAvailableLanguages())) 47 self.spellingComboBox.addItems(sorted(SpellChecker.getAvailableLanguages()))
49 48
50 if not new: 49 if not new:

eric ide

mercurial