If you don't really need to make the screen invisible, how about:
I use this:
screen = pygame.display.set_mode((1280,1024), pygame.FULLSCREEN)
screen = pygame.display.set_mode((200,200))
pygame.display.flip()
call('I CALL AN EXTERNAL PROGRAM HERE')
screen = pygame.display.set_mode((1280,1024), pygame.FULLSCREEN)
pygame.display.flip()
to exit full screen so that you can see my second application. Its convenient because it will wait for the second application to close before returning to full-screen mode.
source
share