Advertisement
stilian1231231

nz

Apr 25th, 2022
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. from tkinter import *
  2. import time
  3.  
  4. window = Tk()
  5.  
  6. running = True
  7.  
  8. def infinityloop():
  9.  
  10.     x = 0
  11.     y = []
  12.  
  13.     x += 0
  14.  
  15.     c = Toplevel()
  16.     c.config(bg='yellow')
  17.     c.geometry('200x200')
  18.  
  19.     Label(c,text="pass",bg='yellow',
  20.           font=('consolas',70)).place(x=80,y=100)
  21.  
  22.     if x%1 == 0:
  23.         time.sleep(0)
  24.         y.append(c)
  25.         window.update()
  26.  
  27.     if c.quit():
  28.          c.quit()
  29.          running = False
  30.  
  31.  
  32.  
  33. if window:
  34.     while running:
  35.       infinityloop()
  36.  
  37.  
  38.  
  39. mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement