""" ########################################################################### # # Copyright (c) 2020-2022 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file run.py # # @author (last) Peter Lucia # @date (last) 22-Feb-2021 # @author (original) Behrouz NematiPour # @date (original) 19-Aug-2020 # ############################################################################ the main function to load the main simulator loader widget """ import sys from dialin.ui import utils from PySide2 import QtCore, QtWidgets from simulator.loader import Simulator def main(): """ the main function which initializes the Simulator and starts it. :return: none """ utils.tstStart(__file__) # create qt application app = QtWidgets.QApplication(sys.argv) simulator = Simulator() simulator.show() utils.tstDone() # start qt application main loop sys.exit(app.exec_()) if __name__ == "__main__": QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts) main()