-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1.py
209 lines (205 loc) · 9.22 KB
/
1.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
from tkinter import *
from PIL import Image, ImageTk
import webbrowser
root=Tk()
root.title("KICKFLIX")
root.geometry("750x500")
# bg=PhotoImage(file=r"C:\Users\agarw\OneDrive\Desktop\logo2.png")
# bg=bg.subsample(1,1)
# label1=Label(root,image=bg)
# label1.place(x=100,y=20)
# l1=Label(root,text=" ",padx=50,font=("Courier",14)).grid(row=0,column=0)
l1=Label(root,text=" WELCOME TO ",padx=50,font=("Courier",24),bg="red").place(x=45,y=0)
# l2=Label(root,text=" KICKFLIX ! ",font=("Courier",14),bg="red")
# l2.place(x=210,y=25)
i=0
def kick():
global i,l1
if(i>64):
i=14
# l1.destroy()
else:
i=i+14
# l1=Label(root,text=" WELCOME TO ",padx=50,font=("Courier",i),bg="red").place(x=45,y=0)
l1=Label(root,text="KICKFL!X",font=("Courier",i),bg="red")
l1.place(x=150,y=115)
root.after(500,kick)
kick()
photo = PhotoImage(file = r"C:\Users\agarw\OneDrive\Desktop\computer project\movies_down_bot.png")#1
photoimage = photo.subsample(5, 5)
# i=Image.open(r"C:\Users\agarw\OneDrive\Desktop\logo2.png")
# resize=i.resize((450,350))
# img=ImageTk.PhotoImage(resize)
# # b2=Button(root,text="",image=img).place(x=275,y=130)
# label1=Label(root,image=img)
# label1.place(x=100,y=20)
def A():
rt.destroy()
global r
r=Tk()
r.geometry("800x900")
# r.title("A")
# image2 = Image.open(r"C:\Users\agarw\OneDrive\Desktop\computer project\7a44528278ebb8a89e7f9923a4e52dcbe723600ff1179f9cd9a6284c73fa376e._UY500_UX667_RI_V_TTW_.png")
# resize_image2 = image2.resize((175,140))
# img2 = ImageTk.PhotoImage(resize_image2)
# b6=Button(r,text="",image=img2,command=lambda:A()).place(x=0,y=0)
# l5=Label(r,text="--->",font=("Courier",14),bg="blue").place(x=185,y=60)
# l6=Label(r,text="""In June 2012, A huge, dead, unmanned ship-"Sea Bird", on its way to a shipyard, broke its ties and ran ashore Juhu beach. Prithvi, a shipping officer recovering from psychotic depression due to the loss of his family, is in charge of getting Sea B.
# IMDb --- 5.4/10
# """,font=("Courier",14)).place(x=250,y=20)
global our_images,count
count=0
img1=Image.open(r"C:\Users\agarw\OneDrive\Desktop\compprpject2\7a44528278ebb8a89e7f9923a4e52dcbe723600ff1179f9cd9a6284c73fa376e._UY500_UX667_RI_V_TTW_.png")#9
resize1=img1.resize((850,520))
img1=ImageTk.PhotoImage(resize1)
img2=Image.open(r"C:\Users\agarw\OneDrive\Desktop\compprpject2\_1fb98ba8-4657-11ea-b9ea-c2a424b98379.png")#10
resize2=img2.resize((850,520))
img2=ImageTk.PhotoImage(resize2)
img3=Image.open(r"C:\Users\agarw\OneDrive\Desktop\compprpject2\120220054144-5e43eb804cb99vicky-bhumi-channa-ve-resized.png")#11
resize3=img3.resize((850,520))
img3=ImageTk.PhotoImage(resize3)
our_images=[img1,img2,img3]
# create canvas
my_canvas=Canvas(r,width=1000,height=200)
my_canvas.pack(fill=BOTH,expand=True)
my_canvas.create_image(0,0,image=our_images[0],anchor=NW)
l1=Label(r,text="BHOOT PART ONE:THE HAUNTED SHIP",font=("Courier",14),bg="red").place(x=199,y=495)
L2=Label(r,text="""In June 2012, A huge, dead, unmanned ship-"Sea Bird", on its way to a shipyard, broke its ties and ran ashore Juhu beach.
Prithvi, a shipping officer recovering from psychotic depression
due to the loss of his family, is in charge of getting Sea B.
IMDb --- 5.4/10
AVAILABLE ON PRIME VIDEOS""").place(x=100,y=570)
def callback(url):
webbrowser.open_new_tab(url)
#Create a Label to display the link
link = Label(r, text="BHOOT TRAILER",font=('Helveticabold', 15), fg="blue", cursor="hand2")
link.place(x=335,y=670)
link.bind("<Button-1>", lambda e:
callback(" https://www.youtube.com/watch?v=ELcRnZ3kP08"))
def next():
global count,our_images
if(count==2):
my_canvas.create_image(0,0,image=our_images[2],anchor=NW)
count=0
else:
my_canvas.create_image(0,0,image=our_images[count],anchor=NW)
count+=1
root.after(2000,next)
next()
r.mainloop()
return
def B():
rt.destroy()
global r
r=Tk()
r.geometry("800x900")
global our_images,count
count=-1
img1=Image.open(r"C:\Users\agarw\Downloads\1587622960134288-0.png")#12
resize1=img1.resize((850,520))
img1=ImageTk.PhotoImage(resize1)
img2=Image.open(r"C:\Users\agarw\OneDrive\Desktop\compprpject2\_1fb98ba8-4657-11ea-b9ea-c2a424b98379.png")#13
resize2=img2.resize((850,520))
img2=ImageTk.PhotoImage(resize2)
img3=Image.open(r"C:\Users\agarw\OneDrive\Desktop\compprpject2\120220054144-5e43eb804cb99vicky-bhumi-channa-ve-resized.png")#14
resize3=img3.resize((850,520))
img3=ImageTk.PhotoImage(resize3)
our_images=[img1,img2,img3]
# create canvas
my_canvas=Canvas(r,width=1000,height=200)
my_canvas.pack(fill=BOTH,expand=True)
my_canvas.create_image(0,0,image=our_images[0],anchor=NW)
l1=Label(r,text="PARI",font=("Courier",14),bg="red").place(x=39,y=495)
L2=Label(r,text="""A kind-hearted man tries to help Rukhsana, a chained woman in a hut who is probably a victim of abuse
. However, he soon realises that things are not as they appear to be.
IMDb --- 6.6/10
AVAILABLE ON PRIME VIDEOS""").place(x=100,y=570)
def callback(url):
webbrowser.open_new_tab(url)
#Create a Label to display the link
link = Label(r, text="PARI TRAILER",font=('Helveticabold', 15), fg="blue", cursor="hand2")
link.place(x=305,y=685)
link.bind("<Button-1>", lambda e:
callback(" https://www.youtube.com/watch?v=PQKu78NnyvU"))
def next():
global count,our_images
if(count==2):
my_canvas.create_image(0,0,image=our_images[0],anchor=NW)
count=0
else:
my_canvas.create_image(0,0,image=our_images[count+1],anchor=NW)
count+=1
root.after(2000,next)
next()
r.mainloop()
return
def horror():
rot.destroy()
global rt
rt=Tk()
rt.title("HORROR")
rt.geometry("500x520")
image2 = Image.open(r"C:\Users\agarw\OneDrive\Desktop\computer project\7a44528278ebb8a89e7f9923a4e52dcbe723600ff1179f9cd9a6284c73fa376e._UY500_UX667_RI_V_TTW_.png")#7
resize_image2 = image2.resize((135,100))
img2 = ImageTk.PhotoImage(resize_image2)
b6=Button(rt,text="",image=img2,command=lambda:A()).place(x=0,y=0)
l5=Label(rt,text="BHOOT PART 1",font=("Courier",14),bg="red").place(x=0,y=110)
image23 = Image.open(r"C:\Users\agarw\Downloads\1587622960134288-0.png")#8
resize_image23 = image23.resize((135,105))
img23 = ImageTk.PhotoImage(resize_image23)
b6=Button(rt,text="",image=img23,command=lambda:B()).place(x=200,y=0)
l5=Label(rt,text="PARI",font=("Courier",14),bg="red").place(x=240,y=110)
rt.mainloop()
return
def AAA():
rot.destroy()
return
def comedy():
rot.destroy()
return
def crime():
rot.destroy()
return
def Movie():
root.destroy()
global rot,b1,l1
rot=Tk()
rot.title("GENRE")
rot.geometry("750x500")
photo=PhotoImage(file=r"C:\Users\agarw\OneDrive\Desktop\computer project\watercolor-halloween-background_52683-43698.png")#6
photo=photo.subsample(4,4)
b1=Button(rot,text="",image=photo,command=lambda:horror()).place(x=0,y=0)
l1=Label(rot,text="HORROR",font=("Courier",14),bg="red").place(x=39,y=110)
# photo2=PhotoImage(file=r"C:\Users\agarw\OneDrive\Desktop\computer project\download.png")
# resize_image = photo2.resize((20,10))
# # photo=photo2.subsample(2,2)
# b1=Button(rot,text="",image=photo2,padx=200,pady=100).place(x=280,y=0)
# l1=Label(rot,text="AAA",font=("Courier",14),bg="red").place(x=310,y=110)
image = Image.open(r"C:\Users\agarw\OneDrive\Desktop\computer project\download.png")#3
resize_image = image.resize((155,100))
img = ImageTk.PhotoImage(resize_image)
# label1 = Label(image=img)
# label1.image = img
# label1.pack()
b1=Button(rot,text="",image=img,command=lambda:AAA()).place(x=225,y=0)
l1=Label(rot,text="ACTION AND ADVENTURE",font=("Courier",14),bg="red").place(x=179,y=110)
image2 = Image.open(r"C:\Users\agarw\Downloads\sodapdf-converted (1).png")#4
resize_image2 = image2.resize((125,100))
img2 = ImageTk.PhotoImage(resize_image2)
b1=Button(rot,text="",image=img2,command=lambda:comedy()).place(x=445,y=0)
l1=Label(rot,text="COMEDY",font=("Courier",14),bg="red").place(x=479,y=110)
b1=Button(rot,text="",image=img).place(x=225,y=0)
# l1=Label(rot,text="ACTION AND ADVENTURE",font=("Courier",14),bg="red").place(x=179,y=110)
image3 = Image.open(r"C:\Users\agarw\OneDrive\Desktop\computer project\Crime_film_clapperboard.svg.png")#5
resize_image3 = image3.resize((125,120))
img3 = ImageTk.PhotoImage(resize_image3)
b1=Button(rot,text="",image=img3).place(x=5,y=150)
l1=Label(rot,text="CRIME",font=("Courier",14),bg="red").place(x=35,y=275)
rot.mainloop()
b1=Button(root,text="",image=photoimage,command=lambda:Movie()).place(x=200,y=350)
l1=Label(root,text="MOVIES",font=("Courier",14),bg="red").place(x=200,y=410)
photo = PhotoImage(file =r"C:\Users\agarw\OneDrive\Desktop\computer project\preview_21707_1540639785.png")#2
photoimage2 = photo.subsample(4, 4)
b1=Button(root,text="",image=photoimage2).place(x=450,y=350)
l1=Label(root,text="SERIES",font=("Courier",14),bg="red").place(x=450,y=410)
root.mainloop()