code: def doIteration(self, delay=None, fromqt=False):
          'This method is called by a Qt timer or by network activity on a file descriptor'
          
          if not self.running and self._blockApp:
              self._blockApp.quit()
          self._timer.stop()
          delay = max(delay, 1)
          if not fromqt:
              self.qApp.processEvents(QtCore.QEventLoop.AllEvents, delay * 1000)
          if self.timeout() is None:
              timeout = 0.1
          elif self.timeout() == 0:
              timeout = 0
          else:
              timeout = self.timeout()
          self._timer.setInterval(timeout * 1000)
          self._timer.start(f doIteration(self, delay=None, fromqt=False):
          'This method is called by a Qt timer or by network activity on a file descriptor'
          
          if not self.running and self._blockApp:
              self._blockApp.quit()
          self._timer.stop()
          delay = max(delay, 1)
          if not fromqt:
              self.qApp.processEvents(QtCore.QEventLoop.AllEvents, delay * 1000)
          if self.timeout() is None:
              timeout = 0.1
          elif self.timeout() == 0:
              timeout = 0
          else:
              timeout = self.timeout()
          self._timer.setInterval(timeout * 1000)
          self._timer.start()
docs: This method is called by a Qt timer or by network activity on a file descriptor