def start_conversion(self): if not self.input_file.get(): messagebox.showerror("Error", "Please select an input file.") return
input_path = self.input_file.get() out_format = self.output_format.get() bitrate = self.bitrate.get() out_dir = self.output_dir.get() if self.output_dir.get() else None
# Output directory tk.Label(self.root, text="Output Directory (optional):").pack(pady=5) tk.Entry(self.root, textvariable=self.output_dir, width=50).pack(pady=5) tk.Button(self.root, text="Browse Output Folder", command=self.browse_output).pack(pady=5)