Esempio n. 1
0
def quit():
    """Quits the underlying SDL2 video subysystem.

    If no other subsystems are active, this will also call
    pygame2.sdl.quit().
    """
    sdl.quit_subsystem(sdl.SDL_INIT_VIDEO)
    if sdl.was_init(0) != 0:
        sdl.quit()
Esempio n. 2
0
 def tearDown(self):
     sdl.quit_subsystem(sdl.SDL_INIT_TIMER)
     sdl.quit()
Esempio n. 3
0
 def tearDown(self):
     sdl.quit()
     sdlimage.quit()
Esempio n. 4
0
 def tearDown(self):
     sdl.quit_subsystem(sdl.SDL_INIT_JOYSTICK)
     sdl.quit()
Esempio n. 5
0
File: gl.py Progetto: lxnt/fgtestbed
def sdl_fini():
    sdlimage.quit()
    sdlttf.quit()
    sdl.quit()
Esempio n. 6
0
 def tearDown(self):
     sdl.quit()
Esempio n. 7
0
 def tearDown(self):
     sdl.quit_subsystem(sdl.SDL_INIT_EVERYTHING)
     sdl.quit()
Esempio n. 8
0
 def tearDown(self):
     sdl.quit_subsystem(sdl.SDL_INIT_VIDEO)
     sdl.quit()
Esempio n. 9
0
 def tearDown(self):
     sdl.quit()
     sdlttf.quit()