mirror of
https://github.com/muziing/Py2exe-GUI.git
synced 2025-01-13 16:42:54 +08:00
Fix bug
修复当无法启动 PyInstaller 子进程时没有任何反馈的问题;
This commit is contained in:
parent
b2f7fffc53
commit
cc59a80602
@ -205,6 +205,11 @@ class SubProcessDlg(QDialog):
|
||||
self.info_label.setText(output_text)
|
||||
if output_text == "正在运行中……":
|
||||
self.multifunction_btn.setText("取消")
|
||||
elif output_type == SubProcessTool.ERROR:
|
||||
self.info_label.setText("PyInstaller错误!")
|
||||
self.browser.append(output_text)
|
||||
self.browser.append("请检查是否已经安装正确版本的 PyInstaller")
|
||||
self.multifunction_btn.setText("关闭")
|
||||
|
||||
@Slot()
|
||||
def handle_multifunction(self) -> None:
|
||||
@ -225,3 +230,5 @@ class SubProcessDlg(QDialog):
|
||||
subprocess.call(["xdg-open", dist_path])
|
||||
elif self.parent().running_platform == PLATFORM.macos:
|
||||
subprocess.call(["open", dist_path])
|
||||
elif btn_text == "关闭":
|
||||
self.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user