[app] change imports
This commit is contained in:
parent
6e944fb2bf
commit
0c6bb8b687
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from nixview import nixview
|
from nixview.nixview import main
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
nixview.main()
|
main()
|
@ -1,4 +1,4 @@
|
|||||||
from nixview.tree_model import NixTreeItem
|
from nixview.data_models.tree_model import NixTreeItem
|
||||||
from PyQt5.QtCore import QObject, pyqtSignal
|
from PyQt5.QtCore import QObject, pyqtSignal
|
||||||
|
|
||||||
class Communicate(QObject):
|
class Communicate(QObject):
|
||||||
|
@ -6,9 +6,11 @@ _HERE = os.path.dirname(__file__)
|
|||||||
with open(os.path.join(_HERE, "info.json")) as infofile:
|
with open(os.path.join(_HERE, "info.json")) as infofile:
|
||||||
_INFODICT = json.load(infofile)
|
_INFODICT = json.load(infofile)
|
||||||
|
|
||||||
|
NAME = _INFODICT["NAME"]
|
||||||
VERSION = _INFODICT["VERSION"]
|
VERSION = _INFODICT["VERSION"]
|
||||||
AUTHOR = _INFODICT["AUTHOR"]
|
AUTHOR = _INFODICT["AUTHOR"]
|
||||||
COPYRIGHT = _INFODICT["COPYRIGHT"]
|
COPYRIGHT = _INFODICT["COPYRIGHT"]
|
||||||
CONTACT = _INFODICT["CONTACT"]
|
CONTACT = _INFODICT["CONTACT"]
|
||||||
HOMEPAGE = _INFODICT["HOMEPAGE"]
|
HOMEPAGE = _INFODICT["HOMEPAGE"]
|
||||||
CLASSIFIERS = _INFODICT["CLASSIFIERS"]
|
CLASSIFIERS = _INFODICT["CLASSIFIERS"]
|
||||||
|
DESCRIPTION = _INFODICT["DESCRIPTION"]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import sys
|
import sys
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
from nixview.main_window import NixView
|
from nixview.ui.main_window import NixView
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -4,10 +4,9 @@ from PyQt5.QtGui import QPixmap
|
|||||||
from PyQt5.QtCore import QItemSelectionModel, Qt, QSettings, pyqtSignal
|
from PyQt5.QtCore import QItemSelectionModel, Qt, QSettings, pyqtSignal
|
||||||
|
|
||||||
from nixview.file_handler import FileHandler, ItemDescriptor
|
from nixview.file_handler import FileHandler, ItemDescriptor
|
||||||
from nixview.plot_screen import PlotScreen
|
|
||||||
import nixview.communicator as comm
|
import nixview.communicator as comm
|
||||||
import nixview.constants as cnst
|
import nixview.constants as cnst
|
||||||
from nixview.tree_model import NixTreeView, TreeModel, TreeType
|
from nixview.data_models.tree_model import NixTreeView, TreeModel, TreeType
|
||||||
|
|
||||||
class CentralWidget(QWidget):
|
class CentralWidget(QWidget):
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ from PyQt5.QtCore import QSize, QSettings, Qt
|
|||||||
from nixview.file_handler import FileHandler, NodeType
|
from nixview.file_handler import FileHandler, NodeType
|
||||||
import nixview.constants as cnst
|
import nixview.constants as cnst
|
||||||
import nixview.communicator as comm
|
import nixview.communicator as comm
|
||||||
from nixview.central_widget import CentralWidget
|
from nixview.ui.central_widget import CentralWidget
|
||||||
|
|
||||||
|
|
||||||
class NixView(QMainWindow):
|
class NixView(QMainWindow):
|
||||||
|
Loading…
Reference in New Issue
Block a user