Aplicação Pyqt Fechar
from PyQt5 import QtWidgets
class Ui(QtWidgets.QMainWindow):
...
def close_window(self):
self.close()
CoderMax
from PyQt5 import QtWidgets
class Ui(QtWidgets.QMainWindow):
...
def close_window(self):
self.close()