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

Re: [pygame] Starting Window Position



I gathered that, right after I sent it. 
Here's a new version:

import pygame
from pygame.locals import *
import os, sys

pygame.init()
if sys.platform == 'win32':
    os.environ['SDL_VIDEO_WINDOW_POS'] = '300,230'
pygame.display.set_mode((200,200), 16)
pygame.time.wait(2000)
pygame.quit()

pygame.init()
if sys.platform == 'win32':
    os.environ['SDL_VIDEO_WINDOW_POS'] = '400,430'
pygame.display.set_mode ((200,200), 16)
pygame.time.wait(2000)
sys.exit()

...but it doesn't work. 

On 6/29/07, Luke Paireepinart < rabidpoobear@xxxxxxxxx> wrote:
Ian Mallett wrote:
> That still doesn't work either...
Lenard's code was showing how he tested that the environment variable
was ignored except by set_mode.
He did this by setting the variable to various different values, but not
calling set_mode,
and the changing value didn't change the window position.
I.E. he sent the code _because_ it didn't work.

-Luke