FULLSCREEN and DOUBLEBUF

Mark Lawrence breamoreboy at gmail.com
Thu Jun 7 13:41:56 EDT 2018


On 07/06/18 18:12, Paul St George wrote:
> This is both a narrow question about some code and a more general 
> question about syntax in Python
> 
> Using the Pygame modules, I want to set both FULLSCREEN and DOUBLEBUF
> 
> I can use
> screen = 
> pygame.display.set_mode((screen_width,screen_height),pygame.FULLSCREEN)
> to set a FULLSCREEN display
> 
> Or, I can use
> screen = 
> pygame.display.set_mode((screen_width,screen_height),pygame.DOUBLEBUF)
> to set DOUBLEBUF
> 
> But how do I set both FULLSCREEN and DOUBLEBUF?
> 
> And, how can I test or check that DOUBLEBUF is set?
> 

Pure guesswork but how about:-

screen = pygame.display.set_mode((screen_width,screen_height), 
pygame.FULLSCREEN | pygame.DOUBLEBUF)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list