From f30bea5006da58f963b847516c9fd06c364b7766 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sun, 27 Dec 2020 20:07:03 +0100 Subject: [PATCH] Icon! --- logplotter.svg | 131 +++++++++++++++++++++++++++++++++++++++++++++++++ run.py | 2 + 2 files changed, 133 insertions(+) create mode 100644 logplotter.svg 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)