Search
 
SCRIPT & CODE EXAMPLE
 

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()
Comment

PREVIOUS NEXT
Code Example
Python :: flask for loops 
Python :: how to create a custom callback function in keras while training the model 
Python :: how to merge dataframe with different keys 
Python :: drop index in multiindex pandas 
Python :: django update increment 
Python :: python list minus list 
Python :: identify prime numbers python 
Python :: django get current date 
Python :: jupyter themes 
Python :: python turn 0 into 1 and vice versa 
Python :: pandas dataframe get number of columns 
Python :: how to make python open a link 
Python :: ordered char list python 
Python :: How to make an simple python client 
Python :: python check if string is number 
Python :: django foreign key error Cannot assign must be a instance 
Python :: pyspark take random sample 
Python :: python -m pip install 
Python :: python ndarray string array into int 
Python :: binary number in python 32 bit 
Python :: python delete the last line of console 
Python :: subtract one list from another python 
Python :: regex in python to obtain only the string in python 
Python :: drop a column from dataframe 
Python :: system commands in python windwos 
Python :: can you print to multiple output files python 
Python :: pandas filter rows by value in list 
Python :: How to create a hyperlink with a Label in Tkinter 
Python :: flask console log 
Python :: append a line to a text file python 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =