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 = b'[encoded data, 35788 characters]'


FILENAME = r'yourfile.png'          # if you want to use a file instead of data, then use this in Image Element
DISPLAY_TIME_MILLISECONDS = 4000

sg.Window('Window Title', [[sg.Image(data=image)]], transparent_color=sg.theme_background_color(), no_titlebar=True, keep_on_top=True).read(timeout=DISPLAY_TIME_MILLISECONDS, close=True)
