[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Location of Pygame Window
Kris Schnee wrote:
A weird question for you. What determines the location on-screen of the
Pygame graphics window? I find it appears in unpredictable locations,
sometimes going past the edge of the screen so that I have to drag it
into place to see the whole thing. Is there a way to give it a constant
starting location?
Kris
os.environ['SDL_VIDEO_WINDOW_POS'] = '3,23'
or
os.environ['SDL_VIDEO_CENTERED'] = '1'