Reorganise constants, and add ISO language codes in order to drop dependency pycountry
This commit is contained in:
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ from PyQt5.QtWidgets import (
|
||||
QTreeWidgetItem, QCheckBox
|
||||
)
|
||||
|
||||
from nw.enum import nwAlert
|
||||
from nw.constants import nwAlert
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user