def processEvents(self): # hack copied from QgsVectorLayerInterruption.... .mustStop # to allow responsive cancelation on linux i = 0 while i < 100 and QCoreApplication.hasPendingEvents(): QCoreApplication.processEvents() i += 1
def progress_changed(progress): """ Handles feedback to progress dialog bridge """ progress_dialog.setValue(progress) iters = 0 while QCoreApplication.hasPendingEvents() and iters < 100: QCoreApplication.processEvents() iters += 1