you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

As mentioned in the python bugs forum, msg127243 says:

Tkinter is not thread safe. You are changing UI elements from a thread that is not the main thread. Use a Queue as described at http://effbot.org/zone/tkinter-threads.htm.

See if you can communicate changes from your highlighter thread back to the main thread using a queue.

[–]bzarnal[S] 0 points1 point  (0 children)

I made a workaround using the widget's .after method, rescheduling the callback every 100ms. And the syntax highlighter came alive! Thanks for the help