Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

wait() in python tkinter

from Tkinter import *
def waithere():
    var = IntVar()
    root.after(3000, var.set, 1)
    print("waiting...")
    root.wait_variable(var)

root = Tk()

print "1"
waithere()
print "2"

root.mainloop()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #tkinter
ADD COMMENT
Topic
Name
2+5 =