20250701-1

This commit is contained in:
2025-07-01 17:49:48 +08:00
parent 6f59cd3c28
commit fc33f7e4cf

13
gui.py
View File

@ -576,19 +576,6 @@ class WatermarkGUI:
result = messagebox.askyesno("确认", f"确定要批量处理所有 {len(self.image_files)} 张图片吗?")
if not result:
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)
processed = 0
errors = 0