so i am running python 3.5 and spyder 3.2.8 and pyinstaller i have made a gui with designer used the main thats shows below.
def run():
app=QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_Dialog()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
run()
my question is about that when i use the pyinstaller to make the exe i run it and a console pop ups along with the gui and when i close it, all the gui closes. any idea?