How it works...
In the callProgressBar.pyw file, because we want the progress bar to show its progress when the push button is pressed, the clicked() event of the progress bar is connected to the updateBar() method, so when the push button is clicked, the updateBar() method will be invoked. In the updateBar() method, a while loop is used that loops from 0 to 100. A variable, x, is initialized to the value 0. With every iteration of the while loop, the value of x is incremented by 0.0001. The value in the x variable is applied to the progress bar when updating it. That is, with every iteration of the while loop, the value of x is incremented and the value of x is used in updating the progress bar. Hence, the progress bar will begin its progress ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access