diff --git a/src/ui/gui.py b/src/ui/gui.py index cf6a5a5..c6b1e02 100644 --- a/src/ui/gui.py +++ b/src/ui/gui.py @@ -143,14 +143,14 @@ class BatchTableExtractorApp: self.lbl_src = ttk.Label(path_box, text="来源目录:") self.lbl_src.grid(row=0, column=0, sticky=tk.W, pady=5) - ttk.Entry(path_box, textvariable=self.src_path_var).grid(row=0, column=1, sticky=tk.EW, padx=6) + ttk.Entry(path_box, textvariable=self.src_path_var, width=40).grid(row=0, column=1, sticky=tk.EW, padx=6) self.btn_browse_src = ProgressButton(path_box, text="选择...", command=self._browse_src, height=22, width=50) self.btn_browse_src.grid(row=0, column=2, sticky=tk.EW, padx=(0, 4)) self.btn_open_src = ProgressButton(path_box, text="打开", command=self._open_src_dir, height=22, width=40) self.btn_open_src.grid(row=0, column=3, sticky=tk.EW) ttk.Label(path_box, text="转换目录:").grid(row=1, column=0, sticky=tk.W, pady=5) - ttk.Entry(path_box, textvariable=self.out_dir_var, state="readonly").grid(row=1, column=1, sticky=tk.EW, padx=6) + ttk.Entry(path_box, textvariable=self.out_dir_var, width=40, state="readonly").grid(row=1, column=1, sticky=tk.EW, padx=6) self.btn_browse_out = ProgressButton(path_box, text="选择...", command=self._browse_out, height=22, width=50) self.btn_browse_out.grid(row=1, column=2, sticky=tk.EW, padx=(0, 4)) self.btn_open_out = ProgressButton(path_box, text="打开", command=self._open_out_dir, height=22, width=40) @@ -174,7 +174,7 @@ class BatchTableExtractorApp: cb_pdf.pack(side=tk.LEFT, fill=tk.X, expand=True) cb_pdf.bind("<>", _clear_combo_focus) - self.btn_view_log = ProgressButton(path_box, text="日志", command=self._show_log_window, height=22) + self.btn_view_log = ProgressButton(path_box, text="日志", command=self._show_log_window, height=22, width=94) self.btn_view_log.grid(row=2, column=2, columnspan=2, sticky=tk.EW) path_box.columnconfigure(1, weight=1)