def run(self):
        isIdle = False
        while not self._finish:
            (state, nextCheck, idle) = self._tracker.check_idle()

            if state == 'idle' and not isIdle and idle >= (self._idleSeconds * 1000):
                self.emit(QtCore.SIGNAL("idle()"))
            elif state is not None and isIdle:
                self.emit(QtCore.SIGNAL('active()'))

            if state is not None:
                isIdle = (state == 'idle')

            self.usleep(nextCheck * 1000)
dataset/ETHPy150Open mariano/snakefire/snakefire/qtx.py/IdleTimer.run/original