Answers for "how to open window in middle of screen in pygame"

1

python center window

import os
os.environ["SDL_VIDEO_CENTERED"] = "1"
Posted by: Guest on September-11-2020
0

pygame window at center

import pygame, os
os.environ['SDL_VIDEO_CENTERED'] = '1'

# This has to be done before you initialise pygame with pygame.init()
Posted by: Guest on November-13-2020

Code answers related to "how to open window in middle of screen in pygame"

Python Answers by Framework

Browse Popular Code Answers by Language