Tkinter windows not responding when using update() in a while loop Tkinter windows not responding when using update() in a while loop tkinter tkinter

Tkinter windows not responding when using update() in a while loop


You need to put your while loop in a def, then start it in a new thread, that way your gui won´t freeze.eg:

import threadingdef clipboardcheck():    #Your while loop stuffclass clipboardthread(threading.Thread):    def __init__(self):        threading.Thread.__init__(self)    def run(self):        clipboardcheck()clipboardthread.daemon=True #Otherwise you will have issues closing your programclipboardthread().start()