So I have this function that calls a bunch of other functions. I wanted to add a progress bar so that after each of the inner functions are run, it would show the progress. However, I'm discovering (I think) that while a function is being run, the layout isn't being updated. Once I click the button to start, the progress bar doesn't move until the main function completes.
Is there anyway to refresh the layout so that this progress bar shows movement?