Merge pull request #2911 from PySimpleGUI/Dev-latest

New demo - splash screen
This commit is contained in:
PySimpleGUI 2020-05-19 22:37:07 -04:00 committed by GitHub
commit 30085c29f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import PySimpleGUI as sg
"""
Demo - Splash Screen
Displays a PNG image with transparent areas as see-through on the center
of the screen for a set amount of time.
Copyright 2020 PySimpleGUI.org
"""
IMAGE_FILE = r'A:\- TEMP 2019 -\PySimpleGUI_Logo.png'
DISPLAY_TIME_MILLISECONDS = 4000
sg.Window('Window Title', [[sg.Image(IMAGE_FILE)]], transparent_color=sg.theme_background_color(), no_titlebar=True, keep_on_top=True).read(timeout=DISPLAY_TIME_MILLISECONDS, close=True)