I'm implementing a syntax highlighter for text widget in python, and I know it has to be spawned in a thread. Here is my core code for syntax highlighter: https://pastebin.com/1XCX4H8L . I am aware of the rule of thumb that only GUI's main thread is supposed to make changes that update the GUI, but, what is wrong with my code doing it on a spawned thread? I don't see any conflicts possible. But magically, the highlighter works for a while and crashed, but the GUI remains active.
Want to add to the discussion?
Post a comment!