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
+6 -6
View File
@@ -8,10 +8,10 @@ from nw.gui.dialogs.sessionlog import GuiSessionLogView
from nw.gui.dialogs.timelineview import GuiTimeLineView
__all__ = [
GuiConfigEditor,
GuiExport,
GuiItemEditor,
GuiProjectEditor,
GuiSessionLogView,
GuiTimeLineView,
"GuiConfigEditor",
"GuiExport",
"GuiItemEditor",
"GuiProjectEditor",
"GuiSessionLogView",
"GuiTimeLineView",
]
+1 -2
View File
@@ -25,8 +25,7 @@ from PyQt5.QtWidgets import (
QFileDialog
)
from nw.enum import nwAlert
from nw.constants import nwQuotes
from nw.constants import nwAlert, nwQuotes
logger = logging.getLogger(__name__)
+1 -2
View File
@@ -27,9 +27,8 @@ from PyQt5.QtWidgets import (
from nw.convert import TextFile, HtmlFile, MarkdownFile, LaTeXFile, ConcatFile
from nw.project import NWDoc
from nw.tools import numberToWord, OptLastState
from nw.constants import nwFiles
from nw.common import packageRefURL
from nw.enum import nwItemType, nwAlert
from nw.constants import nwFiles, nwItemType, nwAlert
logger = logging.getLogger(__name__)
+1 -2
View File
@@ -22,8 +22,7 @@ from PyQt5.QtWidgets import (
QLineEdit, QPushButton, QComboBox
)
from nw.enum import nwItemLayout, nwItemClass, nwItemType
from nw.constants import nwLabels
from nw.constants import nwLabels, nwItemLayout, nwItemClass, nwItemType
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -25,7 +25,7 @@ from PyQt5.QtWidgets import (
QTreeWidgetItem, QCheckBox
)
from nw.enum import nwAlert
from nw.constants import nwAlert
logger = logging.getLogger(__name__)
+1 -2
View File
@@ -24,9 +24,8 @@ from PyQt5.QtWidgets import (
QCheckBox
)
from nw.constants import nwConst, nwFiles
from nw.constants import nwConst, nwFiles, nwAlert
from nw.tools import OptLastState
from nw.enum import nwAlert
logger = logging.getLogger(__name__)
+1 -2
View File
@@ -23,9 +23,8 @@ from PyQt5.QtWidgets import (
QGroupBox, QCheckBox
)
from nw.constants import nwFiles
from nw.constants import nwFiles, nwItemClass
from nw.tools import OptLastState
from nw.enum import nwItemClass
logger = logging.getLogger(__name__)