【发布时间】:2021-10-22 01:26:03
【问题描述】:
Pyinstaller 最近添加了一个启动画面选项(耶!)但启动画面在 exe 运行的整个过程中保持打开状态。我需要它,因为我的文件打开速度非常慢,我想警告用户不要关闭窗口。有没有办法可以在 gui 打开时关闭启动画面?
【问题讨论】:
标签: python pyinstaller splash-screen
Pyinstaller 最近添加了一个启动画面选项(耶!)但启动画面在 exe 运行的整个过程中保持打开状态。我需要它,因为我的文件打开速度非常慢,我想警告用户不要关闭窗口。有没有办法可以在 gui 打开时关闭启动画面?
【问题讨论】:
标签: python pyinstaller splash-screen
来自 pyinstaller 文档:
import pyi_splash
# Update the text on the splash screen
pyi_splash.update_text("PyInstaller is a great software!")
pyi_splash.update_text("Second time's a charm!")
# Close the splash screen. It does not matter when the call
# to this function is made, the splash screen remains open until
# this function is called or the Python program is terminated.
pyi_splash.close()
【讨论】: