Icon!
This commit is contained in:
parent
d48e4e844c
commit
f30bea5006
2 changed files with 133 additions and 0 deletions
2
run.py
2
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue