Remova Minimize e Maximize e Cancle Botão Python Pyqt5
self.setWindowFlag(QtCore.Qt.WindowCloseButtonHint, False)
NA RACE
self.setWindowFlag(QtCore.Qt.WindowCloseButtonHint, False)