I am working on a piece of code with tkinter like following:
def function_call():
x = 5;
for _ in range (10):
...
...
...
//pause here until F9 is pressed
root = tk.Tk()
...
...
...
root.bind('<F1>', lambda event: function_call()) //Using F1 to invoke call
Does anyone know how to pause the loop, until F9 is pressed? Please help.