From 46f215dafa4e45cdcf47a7b043097f0ad52acc54 Mon Sep 17 00:00:00 2001 From: Cx330 <1487537121@qq.com> Date: Fri, 14 Nov 2025 14:21:48 +0800 Subject: [PATCH] =?UTF-8?q?5=E7=A7=92=E5=90=8E=E6=B8=85=E7=A9=BA=E7=AA=97?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index ce870af..09198a4 100644 --- a/main.py +++ b/main.py @@ -38,16 +38,19 @@ def create_float_windows(root): width=15, height=2).pack() -def create_windows_periodicoally(root, count=100, delay=50): +def create_windows_periodically(root, count=100, delay=50): if count > 0: create_float_windows(root) - root.after(delay, create_windows_periodicoally, root, count - 1, delay) + root.after(delay, create_windows_periodically, root, count - 1, delay) + + else: + root.after(5000, root.quit) if __name__ == "__main__": root = tk.Tk() root.withdraw() - create_windows_periodicoally(root, 200, 70) + create_windows_periodically(root, 200, 70) root.mainloop() \ No newline at end of file