(self, action)
Updates the screen and tells the GUI to paint itself.
Updates the screen and tells the GUI to paint itself.
Updates the screen and tells the GUI to paint itself .
def run_next(self, action):
        """
        Updates the screen and tells the GUI to paint itself.
        """
        self.screen.fill((0, 0, 0))

        # Run the simulation loop
        self.SimulationLoop(action)
        if GUIEnabled and self.settings.drawMenu:
            self.gui_app.paint(self.screen)

        pygame.display.flip()
        self.clock.tick(self.settings.hz)
        self.fps = self.clock.get_fps()
def run_next ( self , action ) : self . screen . fill ( ( 0 , 0 , 0 ) ) # Run the simulation loop self . SimulationLoop ( action ) if GUIEnabled and self . settings . drawMenu : self . gui_app . paint ( self . screen ) pygame . display . flip ( ) self . clock . tick ( self . settings . hz ) self . fps = self . clock . get_fps ( )