[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Starting Window Position
Opps. Heh. Heh. You're right, but changing it doesn't fix my problem.
On 6/29/07, Luke Paireepinart <
rabidpoobear@xxxxxxxxx> wrote:Ian Mallett wrote:
> How about a simple python shell code?
>
> import pygame
> import sys, os
> if sys.platform == 'win32':
> os.environ['SDL_VIDEO_WINDOW_POS'] = '3,23'
This sets the window's position
>
pygame.display.set_mode((400,50), 16)
This sets the display resolution
>
> now, at this point, if I go:
>
> if sys.platform == 'win32':
> os.environ['SDL_VIDEO_WINDOW_POS'] = '3,23'
This sets the position to the same value it already is
> pygame.display.set_mode((200,200), 16)
This attempts to change the resolution.
Or am I misreading something?
>
> ...the window's position remains at (400,50).
It doesn't appear that you even attempted to change the window's
position, to me.
-Luke