I have a little GUI application I've written in PySide, which runs a few quick tests and then scrapes a good deal of information from a website, which takes around 3-4 minutes. After each test and prior to the scrape I have my program write to a log that is displayed on the UI (a QPlainTextEdit widget), however when the script launches, the UI freezes and doesn't update the log until the script has finished.
I have tried delaying (time.sleep) prior to the web scraping, but this still doesn't have the intended affect - it pauses the application, but still there is no log produces on screen until the scraping is done.
How do I ensure the text is displayed before each function is launched?