Update boom.py/boom.py
This commit is contained in:
@@ -17,7 +17,7 @@ class App:
|
|||||||
# Create a new Toplevel window (separate from root)
|
# Create a new Toplevel window (separate from root)
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
popup = tk.Toplevel(self.root)
|
popup = tk.Toplevel(self.root)
|
||||||
popup.title("Fatal Error: fu")
|
popup.title("Fatal Error: fu")
|
||||||
popup.geometry(f"300x200+{random.randint(0,800)}+{random.randint(0,600)}")
|
popup.geometry(f"300x200+{random.randint(0,800)}+{random.randint(0,600)}")
|
||||||
|
|
||||||
tk.Label(
|
tk.Label(
|
||||||
@@ -28,7 +28,7 @@ class App:
|
|||||||
).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(1, self.spawn_popup) # 1000 ms = 1 second
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
root = tk.Tk()
|
root = tk.Tk()
|
||||||
|
|||||||
Reference in New Issue
Block a user