SoFunction
Updated on 2024-12-20

Pyqt5's method of jumping to an interface and closing the current one.

Most of the online tutorials are written to close the interface directly, I figured out a way: binding two events at the same time

Example:

# Own method

(self.register_re)

# Close the interface


()

The code order represents the order of proceeding; the above example runs its own function first and then closes the current window.

Above this Pyqt5 to realize the jump interface and close the current interface is all that I have shared with you, I hope to be able to give you a reference, and I hope that you will support me more.