A
A
Anton Samoylovich2021-10-29 19:36:53
Python
Anton Samoylovich, 2021-10-29 19:36:53

How to open a window after closing the previous one (Qt designer)?

I'm working on a simple project, I ran into a problem, how to set an action to open windows after closing the previous one, design on qt desinger

from PyQt5 import QtCore, QtGui, QtWidgets

#визуал окон просто не поместился

if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    dsadas = QtWidgets.QMainWindow()
    ui = Ui_dsadas()
    ui.setupUi(dsadas)
    dsadas.show()
    SaveMoneyStart = QtWidgets.QMainWindow()
    ui = Ui_SaveMoneyStart()
    ui.setupUi(SaveMoneyStart)
    SaveMoneyStart.show()
    windowresult = QtWidgets.QMainWindow()
    ui = Ui_windowresult()
    ui.setupUi(windowresult)
    windowresult.show()
    sys.exit(app.exec_())

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question