""" the main function to load the main simulator loader widget """ print("\nStarting the simulator...") import sys from PySide2 import QtCore, QtWidgets from engine.engine import Engine # https://pyinstaller.org/en/stable/spec-files.html # https://www.pythonguis.com/tutorials/packaging-pyside2-applications-windows-pyinstaller/ # https://forum.qt.io/topic/148718/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found def main(): """ the main function which initializes the Simulator and starts it. :return: none """ # create qt application app = QtWidgets.QApplication(sys.argv) engine = Engine() engine.show() # start qt application main loop sys.exit(app.exec_()) if __name__ == "__main__": QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts) main()