20250701-1
This commit is contained in:
13
gui.py
13
gui.py
@ -576,19 +576,6 @@ class WatermarkGUI:
|
|||||||
result = messagebox.askyesno("确认", f"确定要批量处理所有 {len(self.image_files)} 张图片吗?")
|
result = messagebox.askyesno("确认", f"确定要批量处理所有 {len(self.image_files)} 张图片吗?")
|
||||||
if not result:
|
if not result:
|
||||||
return
|
return
|
||||||
|
|
||||||
# 禁用处理按钮
|
|
||||||
self.processing = True
|
|
||||||
self.status_bar.config(text="批量处理中...")
|
|
||||||
|
|
||||||
# 在单独的线程中执行批量处理
|
|
||||||
batch_thread = threading.Thread(target=self._batch_process_thread)
|
|
||||||
batch_thread.daemon = True
|
|
||||||
batch_thread.start()
|
|
||||||
|
|
||||||
def _batch_process_thread(self, i=None):
|
|
||||||
"""在后台线程中执行批量处理"""
|
|
||||||
try:
|
|
||||||
total = len(self.image_files)
|
total = len(self.image_files)
|
||||||
processed = 0
|
processed = 0
|
||||||
errors = 0
|
errors = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user