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