Skip to content

Commit 3e73c7d

Browse files
Merge pull request Aashishkumar123#16 from varunteja007006/patch-1
Update yt-downloader.py
2 parents 0a54d9a + 38903a6 commit 3e73c7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Advance Youtube Downloader/yt-downloader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
from pytube import Playlist
1919
from tkinter.ttk import Progressbar
2020
from tkinter.scrolledtext import ScrolledText
21-
21+
import os
2222
# ===========================================================
23-
23+
youtubeLogo = os.path.join(os.getcwd(), "Advance Youtube Downloader\youtube.png")
2424
class YoutubeDownloader():
2525

2626
# ========== Video Path ===================
@@ -203,7 +203,7 @@ def __init__(self):
203203
self.design3 = Label(self.root,bg="red",width=3,height=6)
204204
self.design3.place(x=242,y=90)
205205

206-
self.yt_icon = ImageTk.PhotoImage(Image.open('youtube.png'))
206+
self.yt_icon = ImageTk.PhotoImage(Image.open(youtubeLogo, mode="r"))
207207
self.logo = Label(self.root,image=self.yt_icon,bg="white")
208208
self.logo.place(x=220,y=70)
209209

0 commit comments

Comments
 (0)