Answers for "wait() in python tkinter"

1

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()
Posted by: Guest on March-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language