Pyinstaller recently added a splash screen option (yay!) but the splash stays open the entire time the exe is running. I need it because my file opens very slowly and I want to warn the user not to close the window. Is there a way I can get the splash screen to close when the gui opens?
Advertisement
Answer
from pyinstaller docs:
JavaScript
x
11
11
1
import pyi_splash
2
3
# Update the text on the splash screen
4
pyi_splash.update_text("PyInstaller is a great software!")
5
pyi_splash.update_text("Second time's a charm!")
6
7
# Close the splash screen. It does not matter when the call
8
# to this function is made, the splash screen remains open until
9
# this function is called or the Python program is terminated.
10
pyi_splash.close()
11