Reorganise constants, and add ISO language codes in order to drop dependency pycountry
This commit is contained in:
@@ -9,11 +9,11 @@ from nw.gui.elements.searchbar import GuiSearchBar
|
||||
from nw.gui.elements.viewdetails import GuiDocViewDetails
|
||||
|
||||
__all__ = [
|
||||
GuiDocDetails,
|
||||
GuiDocEditor,
|
||||
GuiDocTree,
|
||||
GuiDocViewer,
|
||||
GuiNoticeBar,
|
||||
GuiSearchBar,
|
||||
GuiDocViewDetails,
|
||||
"GuiDocDetails",
|
||||
"GuiDocEditor",
|
||||
"GuiDocTree",
|
||||
"GuiDocViewer",
|
||||
"GuiNoticeBar",
|
||||
"GuiSearchBar",
|
||||
"GuiDocViewDetails",
|
||||
]
|
||||
|
||||
@@ -27,8 +27,7 @@ from PyQt5.QtGui import (
|
||||
from nw.project import NWDoc
|
||||
from nw.gui.tools import GuiDocHighlighter, WordCounter
|
||||
from nw.tools import NWSpellCheck
|
||||
from nw.constants import nwFiles, nwUnicode
|
||||
from nw.enum import nwDocAction, nwAlert
|
||||
from nw.constants import nwFiles, nwUnicode, nwDocAction, nwAlert
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -20,8 +20,9 @@ from PyQt5.QtWidgets import (
|
||||
)
|
||||
|
||||
from nw.project import NWItem
|
||||
from nw.constants import nwLabels
|
||||
from nw.enum import nwItemType, nwItemClass, nwItemLayout, nwAlert
|
||||
from nw.constants import (
|
||||
nwLabels, nwItemType, nwItemClass, nwItemLayout, nwAlert
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ from PyQt5.QtWidgets import QTextBrowser
|
||||
from PyQt5.QtGui import QTextOption, QFont, QPalette, QColor
|
||||
|
||||
from nw.convert import Tokenizer, ToHtml
|
||||
from nw.enum import nwAlert, nwItemType
|
||||
from nw.constants import nwAlert, nwItemType
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ from PyQt5.QtWidgets import (
|
||||
QFrame, QGridLayout, QLabel, QLineEdit, QPushButton, QApplication
|
||||
)
|
||||
|
||||
from nw.enum import nwDocAction
|
||||
from nw.constants import nwDocAction
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user