Window closes immediatelly after run
问题 My code calls one window with a button. When the button is clicked, call another window. But the second window closes immediately "basic" and "windows_two" are .py libraries genereted by pyuic5 from .ui files import basic, windows_two from PyQt5 import QtCore, QtGui, QtWidgets if __name__ == "__main__": #Declarations import sys app = QtWidgets.QApplication(sys.argv) def Call_Second_Window(): #Second Screen Form = QtWidgets.QWidget() ui = windows_two.Ui_Form() ui.setupUi(Form) Form.show() def