4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing the spell checking dialog. |
7 Module implementing the spell checking dialog. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSlot |
12 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog |
13 from PyQt4.QtGui import QDialog |
12 |
14 |
13 from .Ui_SpellCheckingDialog import Ui_SpellCheckingDialog |
15 from .Ui_SpellCheckingDialog import Ui_SpellCheckingDialog |
21 """ |
23 """ |
22 def __init__(self, spellChecker, startPos, endPos, parent=None): |
24 def __init__(self, spellChecker, startPos, endPos, parent=None): |
23 """ |
25 """ |
24 Constructor |
26 Constructor |
25 """ |
27 """ |
26 super().__init__(parent) |
28 super(SpellCheckingDialog, self).__init__(parent) |
27 self.setupUi(self) |
29 self.setupUi(self) |
28 |
30 |
29 self.__spell = spellChecker |
31 self.__spell = spellChecker |
30 self.languageLabel.setText("<b>{0}</b>".format(self.__spell.getLanguage())) |
32 self.languageLabel.setText("<b>{0}</b>".format(self.__spell.getLanguage())) |
31 if not self.__spell.initCheck(startPos, endPos): |
33 if not self.__spell.initCheck(startPos, endPos): |