Skip to content Skip to sidebar Skip to footer

Prompt Opens Infinitely Times In Tkinter

In my previous Question grab_set() function not working in tkinter, Flavio Moraes suggested me a code. When I tried to implement it in my main code, I was getting an error which I

Solution 1:

The while True loop is an infinite loop and inside the loop your raising an error, which will lead to execution of the except block, and since your not properly breaking out of the loop, it keeps on happening. Its not clear what your trying to do with the code, but this is the problem. One potential solution is to use after() which will repeat the function a given amount time, in ms. Like root.after(5000,check), this will execute check() after 5000ms(5 sec).


Post a Comment for "Prompt Opens Infinitely Times In Tkinter"