-
Notifications
You must be signed in to change notification settings - Fork 0
/
welcome.py
43 lines (30 loc) · 1.21 KB
/
welcome.py
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
38
39
40
41
42
43
'''Welcome window....'''
from tkinter import *
import os
def run_video():
window.destroy()
os.system('python youtube.py')
def run_subtitle():
window.destroy()
os.system('python subtitle.py')
def run_playlist():
window.destroy()
os.system('python playlist.py')
#Creating tkinter window
window=Tk()
window.title('Youtube downloader')
window.geometry(f'600x600')
window.resizable(False,False)
#Title icon
photo = PhotoImage(file = "1.png")
window.iconphoto(False, photo)
#Create video button
button_vid = Button(window, text = "Video" , bg="#eb4034" , fg="white", activebackground="white" ,activeforeground="red", bd=10 , height = 14 , width=82 , command=run_video )
button_vid.grid(row=0 , column=0)
#Create subtitle button
button_vid = Button(window, text = "Subtitle" , bg="#eb4034" , fg="white", activebackground="white" ,activeforeground="red", bd=10 , height = 8 , width=82 , command=run_subtitle )
button_vid.grid(row=1 , column=0)
#Creating playlist button
button_play = Button(window, text = "Playlist", bg="#eb4034" ,fg="white", activebackground="white" ,activeforeground="red", bd=10 , height = 14 , width=82 , command=run_playlist)
button_play.grid(row = 2 , column = 0)
window.mainloop()