-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfoVision.py
More file actions
37 lines (27 loc) · 991 Bytes
/
InfoVision.py
File metadata and controls
37 lines (27 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import os
"""
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
"""
os.startfile("main.exe")
import PySimpleGUI as sg
FILENAME = r'src/images/tapa_olho.png' # if you want to use a file instead of data, then use this in Image Element
gif = r"src/images/line_boxes.gif"
layout = [[sg.Image(FILENAME)],
[sg.T(" ", size=(11,1)), sg.Image(gif, key='-GIF-')]]
window = sg.Window('Window Title', layout, transparent_color=sg.theme_background_color(), no_titlebar=True)
a = 0
while True:
event, values = window.read(timeout=30)
a += 1
if a >= 60:
if os.path.exists("src/others/checker"):
os.remove("src/others/checker")
break
if a == 1666:
break
if event == sg.WIN_CLOSED: # always, always give a way out!
break
window['-GIF-'].update_animation(gif, time_between_frames=60)