code: def __run(self):
          
          while self.__active == True:
              try:
                  event = self.__queue.get(block = True, timeout = 1)  # 获取事件的阻塞时间设为1秒
                  self.__process(event)
              except Empty:
                  pass
docs: 引擎运行