-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINTRO.py
More file actions
31 lines (27 loc) · 741 Bytes
/
INTRO.py
File metadata and controls
31 lines (27 loc) · 741 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
from tkinter import * #pip install tkinter
from PIL import Image,ImageTk,ImageSequence #pip install Pillow
import time
import pygame #pip install pygame
from pygame import mixer
mixer.init()
root = Tk()
root.geometry("1000x500")
def play_gif():
root.lift()
root.attributes("-topmost",True)
global img
img = Image.open("nova.gif")
lbl = Label(root)
lbl.place(x=0,y=0)
i=0
mixer.music.load("Startup2.mp3")
mixer.music.play()
for img in ImageSequence.Iterator(img):
img = img.resize((1000,500))
img = ImageTk.PhotoImage(img)
lbl.config(image=img)
root.update()
time.sleep(0.02)
root.destroy()
play_gif()
root.mainloop()