|
|
@ -7,6 +7,13 @@ |
|
|
|
import faulthandler; faulthandler.enable() |
|
|
|
|
|
|
|
|
|
|
|
import logging |
|
|
|
logging.basicConfig(level=logging.INFO) #development |
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
logger.info("import") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import sys |
|
|
|
from PyQt5 import QtWidgets, QtGui, QtCore |
|
|
|
from PyQt5.QtWidgets import QApplication, QStyleFactory |
|
|
@ -14,12 +21,10 @@ from PyQt5.QtWidgets import QApplication, QStyleFactory |
|
|
|
from settings import SettingsDialog |
|
|
|
from helper import setPaletteAndFont |
|
|
|
import singleinstance |
|
|
|
from eventloop import EventLoop |
|
|
|
|
|
|
|
import logging |
|
|
|
logging.basicConfig(level=logging.INFO) #development |
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
logger.info("import") |
|
|
|
|
|
|
|
###############This is where start.py in original argodejo starts |
|
|
|
|
|
|
|
|
|
|
|
def setProcessName(executableName): |
|
|
@ -70,8 +75,6 @@ QApplication.setStyle(QStyleFactory.create("Fusion")) |
|
|
|
setPaletteAndFont(qtApp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
#Only cosmetics |
|
|
|
setProcessName("bug01") |
|
|
@ -92,6 +95,12 @@ def exception_hook(exctype, value, traceback): |
|
|
|
sys.excepthook = exception_hook |
|
|
|
|
|
|
|
|
|
|
|
###############This is where mainWindow in original argodejo starts |
|
|
|
|
|
|
|
eventLoop = EventLoop() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scene = QtWidgets.QGraphicsScene() |
|
|
|
|
|
|
|
view = QtWidgets.QGraphicsView() |
|
|
@ -125,6 +134,10 @@ scene.setSceneRect(0,0,1000,1000) |
|
|
|
|
|
|
|
fPalBlue = setPaletteAndFont(qtApp) |
|
|
|
|
|
|
|
|
|
|
|
eventLoop.start() |
|
|
|
|
|
|
|
|
|
|
|
view.show() |
|
|
|
|
|
|
|
widget = SettingsDialog(mainWindow=view) #blocks until closed |
|
|
|