-
Notifications
You must be signed in to change notification settings - Fork 1
/
Movies.py
102 lines (74 loc) · 2.5 KB
/
Movies.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import webbrowser
from tkinter import *
root=Tk()
root.geometry("1000x600")
root.minsize(1000,600)
root.maxsize(1000,900)
root.title("Movie Catalogue")
root.configure(bg="#ECF2FF")
#opening trailer
def tr():
url = "https://www.imdb.com/title/tt4154796/"
webbrowser.open(url)
#NEED ENTER THE IMAGE HERE FOR LOGO
#frame 2 horizontal frame starting
f2=Frame(root,relief=RIDGE,padx="10",bg="#EF4166",borderwidth=2,highlightcolor="brown")
f2.pack(side="top",anchor="nw",fill="x")
img=PhotoImage(file="reel1.png")
l1=Label(f2,image=img,background="#EF4166")
l1.pack(side="left")
l2=Label(f2,text="Movie Catalogue!",font="MERRIWEATHER 24 bold",bg="#EF4166",fg="#ffffff",padx=10,pady=10)
l2.pack(side="left")
##Drop down menu wala list, horizontal
f2=Frame(root,borderwidth="7",bg="#ef4166",relief=FLAT,cursor="circle")
f2.pack(side="top",anchor="nw",fill="x")
#tv show drop down menu
tvsh=StringVar()
tvsh.set(" TV Show ")
popupMenu=OptionMenu(f2,tvsh,"Latest","Popular","Most Trending")
popupMenu.pack(side="left",fill=Y,ipadx="16")
#genre drop down menu
genre=StringVar()
genre.set(" GENRE ")
popupMenu=OptionMenu(f2,genre,"Comedy","Horror","Rom-Com","Documenty","Thriller","Kids movies")
popupMenu.pack(side="left",fill=Y,ipadx="16")
#watchlist drop down menu
wl=StringVar()
wl.set(" Watchlist ")
popupMenu=OptionMenu(f2,wl,"Recently Added","View List")
popupMenu.pack(side="left",fill=Y,ipadx="16")
frame3=Frame(root)
frame3.pack(side="top")
img11=PhotoImage(file="4.png")
l222=Label(frame3,image=img11,)
l222.pack(side="left")
#horizontal movie suggestions(at the moment given by us )
im=PhotoImage(file="6.png")
bu=Button(image=im,command=tr)
bu.place(x=30,y=130)
bu1=Button(image=im)
bu1.place(x=220,y=130)
bu2=Button(image=im)
bu2.place(x=410,y=130)
bu3=Button(image=im)
bu3.place(x=600,y=130)
bu33=Button(image=im)
bu33.place(x=790,y=130)
l1=Label(root,text="..Didn't find anything you like? ",font="Merriweather 20 italic",bg="#eeffdc")
l1.place(x="100",y="450")
name=StringVar()
mvname=Entry(root,text="search for your movie",textvariable="name",width="50",borderwidth="2",font="Roboto 14 italic",foreground="black")
mvname.place(x=100,y=500)
bu5=Button(root,text="Search for movie")
bu5.place(x=670,y=500)
ch1=Checkbutton(root,text="Netflix")
ch1.place(x=200,y=540)
ch2=Checkbutton(root,text="Prime")
ch2.place(x=270,y=540)
ch3=Checkbutton(root,text="Hotstar")
ch3.place(x=340,y=540)
ch4=Checkbutton(root,text="Youtube")
ch4.place(x=415,y=540)
ch5=Checkbutton(root,text="Other")
ch5.place(x=490,y=540)
root.mainloop()