GUI will not be updated until your function returns, so you need to change your program completely. Put your algorithm in a thread, tell it to send a signal to your main thread everything time it has something to output and have your main thread to capture this signal and output text to PTE.
Bookmarks