Advertisement
stilian1231231

s

Apr 25th, 2022
1,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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('1920x1080')
  18.  
  19.     Label(c,text="Process finished with exit code 0",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