Reorganise constants, and add ISO language codes in order to drop dependency pycountry

This commit is contained in:
Veronica K. B. Olsen
2019-11-05 18:14:40 +01:00
parent 993339c96c
commit 0e84452533
44 changed files with 610 additions and 126 deletions
+7 -7
View File
@@ -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",
]
+1 -2
View File
@@ -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__)
+3 -2
View File
@@ -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__)
+1 -1
View File
@@ -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__)
+1 -1
View File
@@ -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__)