This commit is contained in:
Adsooi 2020-12-27 20:07:03 +01:00
parent d48e4e844c
commit f30bea5006
2 changed files with 133 additions and 0 deletions

2
run.py
View file

@ -19,6 +19,7 @@
from PySide2.QtWidgets import QApplication, QFileDialog
from PySide2.QtQml import QQmlApplicationEngine, qmlRegisterType
from PySide2.QtCore import Qt, QObject, Signal, Slot, Property
from PySide2.QtGui import QIcon
import os
import tempfile
@ -79,6 +80,7 @@ class Helper(QObject):
app = QApplication([])
app.setApplicationName("Logarithmic Plotter")
app.setOrganizationName("Ad5001")
app.setWindowIcon(QIcon(os.path.realpath(os.path.join(os.getcwd(), "logplotter.svg"))))
engine = QQmlApplicationEngine()
helper = Helper()
engine.rootContext().setContextProperty("Helper", helper)