in sdw_updater/UpdaterApp.py [0:0]
def update_progress_bar(self, value):
"""
This slot will receive updates from UpgradeThread which will provide a
int representing the percentage of the progressBar. This slot will
update the progressBar value once it receives the signal.
"""
current_progress = int(value)
if current_progress <= 0:
current_progress = 5
elif current_progress > 100:
current_progress = 100
self.progress = current_progress
self.progressBar.setProperty("value", self.progress)