8 """ |
8 """ |
9 |
9 |
10 |
10 |
11 import os |
11 import os |
12 |
12 |
13 from PyQt5.QtCore import pyqtSlot, Qt, QCoreApplication, QDir, QLibraryInfo, \ |
13 from PyQt5.QtCore import ( |
14 QLocale |
14 pyqtSlot, Qt, QCoreApplication, QDir, QLibraryInfo, QLocale |
|
15 ) |
15 from PyQt5.QtWidgets import QListWidgetItem |
16 from PyQt5.QtWidgets import QListWidgetItem |
16 |
17 |
17 from .ConfigurationPageBase import ConfigurationPageBase |
18 from .ConfigurationPageBase import ConfigurationPageBase |
18 from .Ui_WebBrowserSpellCheckingPage import Ui_WebBrowserSpellCheckingPage |
19 from .Ui_WebBrowserSpellCheckingPage import Ui_WebBrowserSpellCheckingPage |
19 |
20 |
170 @pyqtSlot() |
171 @pyqtSlot() |
171 def on_manageDictionariesButton_clicked(self): |
172 def on_manageDictionariesButton_clicked(self): |
172 """ |
173 """ |
173 Private slot to manage spell checking dictionaries. |
174 Private slot to manage spell checking dictionaries. |
174 """ |
175 """ |
175 from WebBrowser.SpellCheck.ManageDictionariesDialog import \ |
176 from WebBrowser.SpellCheck.ManageDictionariesDialog import ( |
176 ManageDictionariesDialog |
177 ManageDictionariesDialog |
|
178 ) |
177 dlg = ManageDictionariesDialog(self.__writeableDirectories, self) |
179 dlg = ManageDictionariesDialog(self.__writeableDirectories, self) |
178 dlg.exec_() |
180 dlg.exec_() |
179 |
181 |
180 self.__populateDictionariesList() |
182 self.__populateDictionariesList() |
181 |
183 |