23 lines
722 B
Python
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_())
|