From aea012136be6330cb1ac3033d51a7254e4b98a7a Mon Sep 17 00:00:00 2001 From: Dilan Boskan Date: Mon, 9 Nov 2020 23:18:20 +0100 Subject: [PATCH] Implemented Visual Fix for #21 --- VocalRemover.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/VocalRemover.py b/VocalRemover.py index 5f5da78..82a1c58 100644 --- a/VocalRemover.py +++ b/VocalRemover.py @@ -299,6 +299,7 @@ class MainWindow(TkinterDnD.Tk): self.aiModel_var = tk.StringVar(value=data['aiModel']) self.last_aiModel = self.aiModel_var.get() # Other + self.inputPathsEntry_var = tk.StringVar(value='') self.lastDir = data['lastDir'] # nopep8 self.progress_var = tk.IntVar(value=0) # Font @@ -313,6 +314,11 @@ class MainWindow(TkinterDnD.Tk): self.update_states() self.update_loop() + + # Display the multiple selected music files more visually understandable + self.inputPaths_var.trace_add('write', + lambda *args: self.inputPathsEntry_var.set('; '.join(list(self.inputPaths_var.get())))) + # -Widget Methods- def create_widgets(self): """Create window widgets""" @@ -396,7 +402,7 @@ class MainWindow(TkinterDnD.Tk): text='Select Your Audio File(s)', command=self.open_file_filedialog) self.filePaths_musicFile_Entry = ttk.Entry(master=self.filePaths_Frame, - textvariable=self.inputPaths_var, + textvariable=self.inputPathsEntry_var, state=tk.DISABLED ) # -Place Widgets-