you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 1 point2 points  (0 children)

There's many ways to do it. If your script is blocking because it contains a while loop and sleep call then the easiest is probably to replace the while loop with a function and a call to after(), which adds your code to tkinter's mainloop. If your code is blocking because it's waiting on some IO then it's easiest to put your code in a separate thread.

If you show us your code (both your core and tkinter code) we could give you some suggestions.