4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to edit the various spell checking dictionaries. |
7 Module implementing a dialog to edit the various spell checking dictionaries. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 import os |
12 import os |
11 |
13 |
12 from PyQt4.QtCore import pyqtSlot, Qt |
14 from PyQt4.QtCore import pyqtSlot, Qt |
13 from PyQt4.QtGui import QDialog, QStringListModel, QSortFilterProxyModel |
15 from PyQt4.QtGui import QDialog, QStringListModel, QSortFilterProxyModel |
25 |
27 |
26 @param data contents to be edited (string) |
28 @param data contents to be edited (string) |
27 @param info info string to show at the header (string) |
29 @param info info string to show at the header (string) |
28 @param parent reference to the parent widget (QWidget) |
30 @param parent reference to the parent widget (QWidget) |
29 """ |
31 """ |
30 super().__init__(parent) |
32 super(SpellingDictionaryEditDialog, self).__init__(parent) |
31 self.setupUi(self) |
33 self.setupUi(self) |
32 |
34 |
33 self.infoLabel.setText(info) |
35 self.infoLabel.setText(info) |
34 |
36 |
35 self.__model = QStringListModel(data.splitlines(), self) |
37 self.__model = QStringListModel(data.splitlines(), self) |