Update boom.py/boom.py

This commit is contained in:
2025-11-03 19:25:24 +00:00
parent e35565076a
commit c81603514a

View File

@@ -15,16 +15,17 @@ class App:
def spawn_popup(self): def spawn_popup(self):
# Create a new Toplevel window (separate from root) # Create a new Toplevel window (separate from root)
popup = tk.Toplevel(self.root) for i in range(10):
popup.title("Fatal Error: fu") popup = tk.Toplevel(self.root)
popup.geometry(f"300x200+{random.randint(0,800)}+{random.randint(0,600)}") popup.title("Fatal Error: fu")
popup.geometry(f"300x200+{random.randint(0,800)}+{random.randint(0,600)}")
tk.Label( tk.Label(
popup, popup,
text="Say bye to your computer", text="Say bye to your computer",
fg="red", fg="red",
font=("Courier", 14, "bold") font=("Courier", 14, "bold")
).pack(expand=True) ).pack(expand=True)
# Schedule next popup # Schedule next popup
self.root.after(0.1, self.spawn_popup) # 1000 ms = 1 second self.root.after(0.1, self.spawn_popup) # 1000 ms = 1 second