In this tutorial, we are going to create a simple splash screen using PyQt5 in Python.
A splash screen is a window containing an image usually appears when a software is loaded. Creating a splash screen with PyQt5 is pretty straight forward and doesn’t require many line of codes.
Buy Me a Coffee? Your support is much appreciated!
PayPal Me: https://www.paypal.me/jiejenn/5
Venmo: @Jie-Jenn
Python script:
import sys
from PyQt5.QtWidgets import QApplication, QLabel
from PyQt5.QtCore import Qt, QTimer
app = QApplication(sys.argv)
lbl = QLabel('<font color=Green size=12><b> Hello World </b></font>')
lbl.setWindowFlags(Qt.SplashScreen | Qt.FramelessWindowHint)
lbl.show()
QTimer.singleShot(4000, app.quit)
sys.exit(app.exec_())