diff --git a/logplotter.svg b/logplotter.svg new file mode 100644 index 0000000..2c02446 --- /dev/null +++ b/logplotter.svg @@ -0,0 +1,131 @@ + + + Logarithm Plotter Icon v1.0 + + + + + + + + image/svg+xml + + Logarithm Plotter Icon v1.0 + + 27/12/2020 + + + Ad5001 + + + + + (c) Ad5001 2020 - All rights reserved + + + + + + + + + + + + + + + + + + + + + + + diff --git a/run.py b/run.py index 4a2d0f8..a89ea0f 100644 --- a/run.py +++ b/run.py @@ -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)