[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Setting Initial Screen Position



You can do it before:
To place at a specific position:

if sys.platform == 'win32':
    os.environ['SDL_VIDEO_WINDOW_POS'] = '3,23'

or, to center:

if sys.platform == 'win32' or sys.platform == 'win64':
    os.environ['SDL_VIDEO_CENTERED'] = '1'

For some reason, it doesn't work for me--it worked when I had Python 2.4
I've got a somewhat unusual hardware configuration, so it should work for you.

Ian