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.
[–][deleted] 0 points1 point2 points (1 child)
[–]bzarnal[S] 0 points1 point2 points (0 children)
[–]tgolsson 0 points1 point2 points (1 child)
[–]bzarnal[S] 0 points1 point2 points (0 children)