Splash Screen
Provides splash screen functionality displayed during application loading.
Basic Usage
1. Splash Screen Setup
Static Image Splash Screen
Parameters
image_path
: Image file pathclose_on_load
: Auto-close on page load completion (default: True)stay_on_top
: Always display on top (default: True)clickable
: Allow closing by click (default: True)position
: Splash screen position (default: "center")Supported positions: "center", "top-left", "top-right", "bottom-left", "bottom-right"
GIF Splash Screen
Parameters
gif_path
: GIF file pathclose_on_load
: Auto-close on page load completion (default: True)stay_on_top
: Always display on top (default: True)clickable
: Allow closing by click (default: True)position
: Splash screen position (default: "center")Supported positions: "center", "top-left", "top-right", "bottom-left", "bottom-right"
2. Splash Screen Control
Manually Close Splash Screen
Thread Control Example
Usage Scenarios
Initial Loading Screen
Loading resources at application start
Database connection
External API initialization
Display During Long Operations
Large file processing
Network operations
Complex calculations
Precautions
Optimize GIF files with appropriate size and quality
Manual splash screen closure required when
close_on_load=False
Consider exception handling when using threads
Last updated