QScintilla/SpellCheckingDialog.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
8 """ 8 """
9 9
10 from PyQt4.QtGui import QDialog 10 from PyQt4.QtGui import QDialog
11 from PyQt4.QtCore import * 11 from PyQt4.QtCore import *
12 12
13 from Ui_SpellCheckingDialog import Ui_SpellCheckingDialog 13 from .Ui_SpellCheckingDialog import Ui_SpellCheckingDialog
14 14
15 import Utilities 15 import Utilities
16 16
17 class SpellCheckingDialog(QDialog, Ui_SpellCheckingDialog): 17 class SpellCheckingDialog(QDialog, Ui_SpellCheckingDialog):
18 """ 18 """
45 def __advance(self): 45 def __advance(self):
46 """ 46 """
47 Private method to advance to the next error. 47 Private method to advance to the next error.
48 """ 48 """
49 try: 49 try:
50 self.__spell.next() 50 next(self.__spell)
51 except StopIteration: 51 except StopIteration:
52 self.__enableButtons(False) 52 self.__enableButtons(False)
53 self.contextLabel.setText("") 53 self.contextLabel.setText("")
54 self.changeEdit.setText("") 54 self.changeEdit.setText("")
55 self.suggestionsList.clear() 55 self.suggestionsList.clear()

eric ide

mercurial