Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

run a loop in tkinter

from tkinter import *

root = Tk()

def task():
    print("hello")
    root.after(2000, task)  # reschedule event in 2 seconds

root.after(2000, task)
root.mainloop()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #loop #tkinter
ADD COMMENT
Topic
Name
5+1 =