def closeEvent(self, e): if self.closed: e.ignore() return if self.shutdown(): self.closed = True return MainWindow.closeEvent(self, e) else: e.ignore()
def closeEvent(self, e): if self.shutdown(): return MainWindow.closeEvent(self, e) else: e.ignore()