def run(): global path, app, myapp path = common_paths() app = QtWidgets.QApplication(sys.argv) myapp = AppWindow(app=app, path=path) myapp.show() r = app.exec_() ''' if myapp.p.connected: myapp.p.fd.write(b'j') #myapp.p.fd.setRTS(0) #time.sleep(0.01) #myapp.p.fd.setRTS(1) ''' app.deleteLater() sys.exit(r)
} ''') progressBar.setMaximum(10) progressBar.setGeometry(0, splash_pix.height() - 50, splash_pix.width(), 20) progressBar.setRange(0,8) splash.show() splash.pbar = progressBar splash.show() return splash if __name__ == "__main__": path = common_paths() from utilities.animTools import traceRowWidget app = QtWidgets.QApplication(sys.argv) #for t in translators(path["translation"]): # app.installTranslator(t) # Create and display the splash screen splash = showSplash() splash.showMessage("<h2><font color='Black'>Initializing...</font></h2>", QtCore.Qt.AlignLeft, QtCore.Qt.black) for a in range(5): app.processEvents() time.sleep(0.01) #IMPORT LIBRARIES splash.showMessage("<h2><font color='Black'>Importing libraries...</font></h2>", QtCore.Qt.AlignLeft, QtCore.Qt.black) splash.pbar.setValue(1) import string,glob,functools