Moved spell checker classes to core folder
This commit is contained in:
@@ -39,7 +39,7 @@ from PyQt5.QtWidgets import (
|
||||
)
|
||||
|
||||
from nw.additions import QSwitch, QConfigLayout
|
||||
from nw.tools import NWSpellCheck, NWSpellSimple, NWSpellEnchant
|
||||
from nw.core import NWSpellCheck, NWSpellSimple, NWSpellEnchant
|
||||
from nw.constants import nwAlert, nwQuotes
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -42,7 +42,7 @@ from PyQt5.QtGui import (
|
||||
from nw.core import NWDoc
|
||||
from nw.gui.tools import GuiDocHighlighter, WordCounter
|
||||
from nw.gui.elements.doctitlebar import GuiDocTitleBar
|
||||
from nw.tools import NWSpellSimple
|
||||
from nw.core import NWSpellSimple
|
||||
from nw.constants import nwUnicode, nwDocAction
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -1007,7 +1007,7 @@ class GuiDocEditor(QTextEdit):
|
||||
"""
|
||||
|
||||
if self.mainConf.spellTool == "enchant":
|
||||
from nw.tools.spellcheck import NWSpellEnchant
|
||||
from nw.core.spellcheck import NWSpellEnchant
|
||||
self.theDict = NWSpellEnchant()
|
||||
else:
|
||||
self.theDict = NWSpellSimple()
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ from PyQt5.QtCore import Qt, QTimer
|
||||
from PyQt5.QtGui import QColor, QPixmap, QFont
|
||||
from PyQt5.QtWidgets import QStatusBar, QLabel
|
||||
|
||||
from nw.tools import NWSpellCheck
|
||||
from nw.core import NWSpellCheck
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user