I'm new to tkinter and I'm trying to figure out the best practice for updating the UI based on some non ui logic running in a different thread.
For example, right now I have a button that triggers a creation of a thread, where it's run()
method handles some heavy logic. During that logic, I want to be able to update the UI, like enabling/disabling some buttons.
I thought of creating an events queue, pass it to the running logic thread that will put events in that queue, and another thread within the UI context will pull events from that queue and update the UI accordingly.
I've been looking here, but it looks like those events are meant to trigger some actions based on stuff going on in the UI, I actually need the opposite.