We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30707d7 commit 344e0d8Copy full SHA for 344e0d8
1 file changed
src/py2exe_gui/__main__.py
@@ -35,6 +35,16 @@ def run_packaging():
35
36
self.status_bar.showMessage("就绪")
37
38
+ def closeEvent(self, event):
39
+ """
40
+ 重写关闭事件,进行收尾清理 \n
41
42
+
43
+ if self.packager.subprocess.process:
44
+ self.packager.subprocess.process.terminate() # 终止尚未结束的子进程
45
+ self.packager.subprocess.process.waitForFinished()
46
+ super(MainApp, self).closeEvent(event)
47
48
49
app = QApplication(sys.argv)
50
window = MainApp()
0 commit comments