I am attempting to add a progress bar to my application. What is
prompting the progress bar to be displayed is the pressing of a button.
This button performs an action, and for the sake of an example, lets say
that it is printing one million words to the screen. While these words
are printing to the screen, I want a progress bar to be running. I want
the bar to fill completely, then go blank, and fill completely over and
over again until all of the words are printed to the screen. Once all
of the words are printed, I want the progress bar to stop its routine. I
have the progress bar up and running, but my problem is that I am using
a while loop to continuously fill the bar, so in turn it is running
infinitely, and the code that comes after it, the words printing, is
never being executed. I can elaborate if necessary. Thanks in advance
for all of your assistance.