From dc2b67b80b08ef5462eceaffa0b3cb31361750a1 Mon Sep 17 00:00:00 2001 From: Dilan Boskan Date: Mon, 7 Dec 2020 14:35:07 +0100 Subject: [PATCH] Added Icon to Window --- VocalRemover.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/VocalRemover.py b/VocalRemover.py index d98138d..678d89e 100644 --- a/VocalRemover.py +++ b/VocalRemover.py @@ -36,10 +36,12 @@ else: base_path = os.path.dirname(os.path.abspath(__file__)) os.chdir(base_path) # Change the current working directory to the base path +image_foler = 'img' instrumentalModels_dir = os.path.join(base_path, 'models') stackedModels_dir = os.path.join(base_path, 'models') -banner_path = os.path.join(base_path, 'img', 'UVR-banner.png') -refresh_path = os.path.join(base_path, 'img', 'refresh.png') +banner_path = os.path.join(base_path, image_foler, 'UVR-banner.png') +refresh_path = os.path.join(base_path, image_foler, 'refresh.png') +icon_path = os.path.join(base_path, image_foler, 'UVR-icon.ico') DEFAULT_DATA = { 'exportPath': '', 'inputPaths': [], @@ -266,6 +268,7 @@ class MainWindow(TkinterDnD.Tk): ypad=int(self.winfo_screenheight()/2 - height/2 - 30))) self.configure(bg='#000000') # Set background color to black self.protocol("WM_DELETE_WINDOW", self.save_values) + self.iconbitmap(icon_path) self.resizable(False, False) self.update()