Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pyinstaller loading splash screen

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?

like image 578
Sasha Halpern Avatar asked Mar 15 '26 12:03

Sasha Halpern


1 Answers

from pyinstaller docs:

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()
like image 90
ozs Avatar answered Mar 17 '26 01:03

ozs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!