42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
"""
|
|
pyside6-rcc resources.qrc -o resources.py
|
|
|
|
"""
|
|
import sys
|
|
import platform
|
|
import logging
|
|
from PySide6.QtWidgets import QApplication
|
|
from PySide6.QtCore import QSettings
|
|
from PySide6.QtGui import QIcon
|
|
|
|
from fixtracks import fixtracks, info
|
|
|
|
logging.basicConfig(level=logging.DEBUG, force=True)
|
|
|
|
# import resources # needs to be imported somewhere in the project to be picked up by qt
|
|
|
|
if platform.system() == "Windows":
|
|
# from PySide6.QtWinExtras import QtWin
|
|
myappid = f"{info.organization_name}.{info.application_version}"
|
|
# QtWin.setCurrentProcessExplicitAppUserModelID(myappid)
|
|
|
|
app = QApplication(sys.argv)
|
|
app.setApplicationName(info.application_name)
|
|
app.setApplicationVersion(str(info.application_version))
|
|
app.setOrganizationDomain(info.organization_name)
|
|
|
|
# if platform.system() == 'Linux':
|
|
# icn = QIcon(":/icons/app_icon")
|
|
# app.setWindowIcon(icn)
|
|
# Create a Qt widget, which will be our window.
|
|
window = fixtracks.MainWindow()
|
|
window.setGeometry(100, 100, 1024, 768)
|
|
window.setWindowTitle("FixTracks")
|
|
# window.setWindowFlags(Qt.FramelessWindowHint) # Remove window frame
|
|
# window.setFixedSize(1024, 768)
|
|
|
|
window.show()
|
|
|
|
# Start the event loop.
|
|
app.exec()
|