Hide pygame display

Is there a way to hide the "pygame.display" screen and make it visible after that without calling "pygame.display.quit ()"?

+5
source share
2 answers

No no. All you can do is minimize the window with pygame.display.iconify().

+3
source

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) 

        #Run my game

        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.

+1
source

All Articles