Update boom.py/boom.py
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user