original_docstring: 
          Start the application. If no event loop was specified, this call will block.
          WARNING: If you are using a custom event loop, you are responsible for starting
          it as soon as possible. If you don't do this, pygames event queue will fill up
          quickly and the window will become unresponsive.
          
docstring: Start the application. If no event loop was specified, this call will block.
  WARNING: If you are using a custom event loop, you are responsible for starting
  it as soon as possible. If you don't do this, pygames event queue will fill up
  quickly and the window will become unresponsive.
docstring_tokens: Start the application . If no event loop was specified this call will block . WARNING : If you are using a custom event loop you are responsible for starting it as soon as possible . If you don ' t do this pygames event queue will fill up quickly and the window will become unresponsive .
code: def start(self):
  
          """
          Start the application. If no event loop was specified, this call will block.
          WARNING: If you are using a custom event loop, you are responsible for starting
          it as soon as possible. If you don't do this, pygames event queue will fill up
          quickly and the window will become unresponsive.
          """
  
          self.logger.info("Starting up...")
  
          #Question: Do we need to reinit pygame to commit SDL environment variables?
          #Answer: Nope.
          if len(self.SDLFLags) > 0:
              self.logger.info("Setting SDL display flags...")
              for i in self.SDLFLags.items():
                  os.environ[i[0]] = i[1] #set SDL environment variables
  
          self.logger.debug("Setting display mode...")
          self.screen = pygame.display.set_mode(self.size, self.displayFlags)
  
          pygame.scrap.init() #eurgh...
  
          if self.root == None:
              self.logger.debug("No root window set, creating a new one...")
              self._createRootWindow() #Now is the best time to initialize our root window if we haven't already done this.
          else:
              self.root.connectSurface(self.screen)
  
          if self.displayCaption:
              pygame.display.set_caption(self.displayCaption)
  
          if self.loop:
              #we already have an event loop, it is up to the user to start it (or pehaps it already has)
              self.loop.create_task(self._processEvents())
              self.loop.create_task(self.postEvent(makeEvent(EVENT_APP_STARTED))) #Notify startup handles
              self.loop.create_task(self.root.draw()) #Initial draw
              self.logger.info("Ready")
          else:
              self.loop = asyncio.get_event_loop() #create new event loop
              self.loop.create_task(self._processEvents())
              self.loop.create_task(self.postEvent(makeEvent(EVENT_APP_STARTED))) #Notify startup handles
              self.loop.create_task(self.root.draw()) #Initial draw
              self.logger.info("Running")
              self.loop.run_forever()
code_tokens: def start ( self ) : self . logger . info ( "Starting up..." ) if len ( self . SDLFLags ) > 0 : self . logger . info ( "Setting SDL display flags..." ) for i in self . SDLFLags . items ( ) : os . environ [ i [ 0 ] ] = i [ 1 ] self . logger . debug ( "Setting display mode..." ) self . screen = pygame . display . set_mode ( self . size , self . displayFlags ) pygame . scrap . init ( ) if self . root == None : self . logger . debug ( "No root window set, creating a new one..." ) self . _createRootWindow ( ) else : self . root . connectSurface ( self . screen ) if self . displayCaption : pygame . display . set_caption ( self . displayCaption ) if self . loop : self . loop . create_task ( self . _processEvents ( ) ) self . loop . create_task ( self . postEvent ( makeEvent ( EVENT_APP_STARTED ) ) ) self . loop . create_task ( self . root . draw ( ) ) self . logger . info ( "Ready" ) else : self . loop = asyncio . get_event_loop ( ) self . loop . create_task ( self . _processEvents ( ) ) self . loop . create_task ( self . postEvent ( makeEvent ( EVENT_APP_STARTED ) ) ) self . loop . create_task ( self . root . draw ( ) ) self . logger . info ( "Running" ) self . loop . run_forever ( )
short_docstring: Start the application.
short_docstring_tokens: Start the application .
comment: """
          Start the application. If no event loop was specified, this call will block.
          WARNING: If you are using a custom event loop, you are responsible for starting
          it as soon as possible. If you don't do this, pygames event queue will fill up
          quickly and the window will become unresponsive.
          """$SEP$#Question: Do we need to reinit pygame to commit SDL environment variables?$SEP$#Answer: Nope.$SEP$#set SDL environment variables$SEP$#eurgh...$SEP$#Now is the best time to initialize our root window if we haven't already done this.$SEP$#we already have an event loop, it is up to the user to start it (or pehaps it already has)$SEP$#Notify startup handles$SEP$#Initial draw$SEP$#create new event loop$SEP$#Notify startup handles$SEP$#Initial draw