From 30caac781be836367232be3fda822389a99edd5c Mon Sep 17 00:00:00 2001 From: littlefean <2028140990@qq.com> Date: Thu, 19 Sep 2024 01:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=A2=9E=E5=8A=A0=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 07a5875..e8b254e 100644 --- a/main.py +++ b/main.py @@ -94,6 +94,8 @@ def stop_screenshots(self): self.grab_index = 0 self.timer.stop() self.tips_text.setText("正在生成视频……") + # 禁用按钮 + self.record_button.setEnabled(False) # 改成红色 self.tips_text.setStyleSheet("QLabel { color: red; }") self.images_to_video( @@ -119,6 +121,8 @@ def stop_screenshots(self): os.rmdir(os.path.join(root, name)) os.rmdir(f"{self.output_dir}/{self.current_dir}") + # 启用按钮 + self.record_button.setEnabled(True) pass