Skip to content Skip to sidebar Skip to footer

Accessing The Main Thread In A Tkinter Script?

I think understand why I am receiving the following error TclStackFree: incorrect freePtr. Call out of sequence? but I am not sure how to fix the problem. Summary of my Script My P

Solution 1:

Here is a link to what was discussed on the tkinter-discuss mailing list: https://mail.python.org/pipermail/tkinter-discuss/2013-November/thread.html

This is the essence:

Hi,

afaik the after() / after_idle() calls are not thread safe!

On my research leading to the code Andreas provide I found the event_generate() method the only threadsafe way to invoke the tk thread without letting it poll something. (As mentioned by Guido and seen on other pages everyone else seems to poll... why?)

brgds,

-- Jan

Post a Comment for "Accessing The Main Thread In A Tkinter Script?"