pyqt5 new window and close current window code example
Example: pyqt close window
from PyQt5 import QtWidgets
class Ui(QtWidgets.QMainWindow):
...
def close_window(self):
self.close()
from PyQt5 import QtWidgets
class Ui(QtWidgets.QMainWindow):
...
def close_window(self):
self.close()