I have a script which copies files from one folder to another. During the execution, i wish to rize a progress bar window and show the percentage of execution. The progress bar window code is (UI itself made in QT Designer):
class Progress(QWidget, Progress.Ui_Progress):
def __init__(self):
super(Progress, self).__init__()
# SETUP UI
self.setupUi(self)
self.progressBar.setValue(??????)
In the main script, I run window before copy function
self.pb = Progress()
self.pb.show()
And then I copy files:
from distutils.dir_util import copy_tree
copy_tree(path_SRC, path_NEW)
So I am confused, how to link progress bar setValue
to show the coping progress.