Files
Portable-Computing-Toolkit-…/portable_computing_toolkit_installer/__main__.py
2019-04-22 16:32:39 -04:00

23 lines
722 B
Python

import sys
from pathlib import Path
from PyQt5 import QtWidgets, QtGui
from ui.installer_wizard import InstallerWizard
if __name__ == "__main__":
# create the QApplication that will manage this window
app = QtWidgets.QApplication(sys.argv)
app.setApplicationName("Portable Computing Toolkit Installer")
try:
app.setStyle(QtWidgets.QStyleFactory.create('WindowsVista'))
except:
app.setStyle(QtWidgets.QStyleFactory.create('Fusion'))
app.setWindowIcon(QtGui.QIcon(str(Path(__file__).parent/"resources/icons/system-software-installer-2.png")))
# create a window
main_window = InstallerWizard()
main_window.show()
# execute the application
sys.exit(app.exec_())