(self)
Begins the draw loopn and tells the GUI to paint itself.
Begins the draw loopn and tells the GUI to paint itself.
Begins the draw loopn and tells the GUI to paint itself .
def run(self):
        """
        Begins the draw loopn and tells the GUI to paint itself.
        """

        # If any of the test constructors update the settings, reflect
        # those changes on the GUI before running
        if GUIEnabled:
            self.gui_table.updateGUI(self.settings)
        self.clock = pygame.time.Clock()
        self.screen.fill((0, 0, 0))

            # Run the simulation loop
        self.SimulationLoop([0, 0, 0])

        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 ( self ) : # If any of the test constructors update the settings, reflect # those changes on the GUI before running if GUIEnabled : self . gui_table . updateGUI ( self . settings ) self . clock = pygame . time . Clock ( ) self . screen . fill ( ( 0 , 0 , 0 ) ) # Run the simulation loop self . SimulationLoop ( [ 0 , 0 , 0 ] ) 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 ( )