def browse_file(self): filepath = filedialog.askopenfilename(filetypes=[("Audio Files", f"*.' *.'.join(SUPPORTED_FORMATS)")]) if filepath: self.input_file.set(filepath)

if output_format not in SUPPORTED_FORMATS: print(f"Unsupported output format: output_format") return False

# Output format tk.Label(self.root, text="Output Format:").pack(pady=5) format_menu = ttk.Combobox(self.root, textvariable=self.output_format, values=SUPPORTED_FORMATS, state="readonly") format_menu.pack(pady=5)