'Initialize the widget\'s progress (i.e show and set progress to 0%).
Parameters
processEvents : Optional[QEventLoop.ProcessEventsFlags]
If present then `QApplication.processEvents(processEvents)`
will be called. Passing any value here is highly discouraged.
It is up to the client to handle the consequences of such action.
.. versionchanged:: 3.4.2
Deprecated and changed default `processEvents` value.'

def progressBarInit(self, processEvents=None):

    self.startTime = time.time()
    self.setWindowTitle((self.captionTitle + '    (0%    complete)'))
    if (self.__progressState != 1):
        self.__progressState = 1
        self.processingStateChanged.emit(1)
    self.progressBarSet(0, processEvents)
