Esempio n. 1
0
 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
Esempio n. 2
0
 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