6 """ |
6 """ |
7 Module implementing the spell checker for the editor component. |
7 Module implementing the spell checker for the editor component. |
8 |
8 |
9 The spell checker is based on pyenchant. |
9 The spell checker is based on pyenchant. |
10 """ |
10 """ |
|
11 |
|
12 import os |
|
13 |
|
14 from PyQt4.QtCore import QTimer, QObject |
|
15 |
|
16 import Preferences |
|
17 import Utilities |
11 |
18 |
12 try: |
19 try: |
13 import enchant |
20 import enchant |
14 except (ImportError, AttributeError, OSError): |
21 except (ImportError, AttributeError, OSError): |
15 pass |
22 pass |
16 |
|
17 import os |
|
18 |
|
19 from PyQt4.QtCore import * |
|
20 |
|
21 import Preferences |
|
22 import Utilities |
|
23 |
23 |
24 |
24 |
25 class SpellChecker(QObject): |
25 class SpellChecker(QObject): |
26 """ |
26 """ |
27 Class implementing a pyenchant based spell checker. |
27 Class implementing a pyenchant based spell checker. |