2022-03-08 09:27:40 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import sys
|
2022-03-25 10:04:02 +00:00
|
|
|
import pathlib
|
2022-03-25 10:04:53 +00:00
|
|
|
sys.path.append(str(pathlib.Path().cwd().parent))
|
|
|
|
|
2022-03-08 09:27:40 +00:00
|
|
|
# pyqtgraph warns on Mac if QApplication is created when it is imported
|
2022-03-25 10:04:02 +00:00
|
|
|
# import pyqtgraph
|
2022-03-08 09:27:40 +00:00
|
|
|
|
|
|
|
from nmreval.lib.logger import handle_exception
|
|
|
|
sys.excepthook = handle_exception
|
|
|
|
|
|
|
|
from nmreval.gui_qt import App
|
|
|
|
from nmreval.gui_qt.main.mainwindow import NMRMainWindow
|
|
|
|
|
|
|
|
app = App([])
|
|
|
|
|
|
|
|
mplQt = NMRMainWindow()
|
|
|
|
mplQt.show()
|
|
|
|
|
|
|
|
sys.exit(app.exec())
|