code: def runAndWait(self):
          '''
          Called by the engine to start an event loop, process all commands in
          the queue at the start of the loop, and then exit the loop.
          '''
          self._push(self._engine.endLoop, tuple())
          self._driver.startLoop(f runAndWait(self):
          '''
          Called by the engine to start an event loop, process all commands in
          the queue at the start of the loop, and then exit the loop.
          '''
          self._push(self._engine.endLoop, tuple())
          self._driver.startLoop()
docs: Called by the engine to start an event loop, process all commands in
          the queue at the start of the loop, and then exit the loop.