I'm using Windows XP. the os.environ['SDL_VIDEODRIVER'] =
'windib' didn't work unfortunately... I'll check out the links. Thanks!

On Sun, Feb 24, 2008 at 5:06 PM, René Dudfield <[EMAIL PROTECTED]> wrote:

> try the pygame from here...
>
> http://www3.telus.net/len_l/pygame.htm
>
>
>
> On Mon, Feb 25, 2008 at 9:37 AM, PyMike <[EMAIL PROTECTED]> wrote:
> > I ran your script and it did not center.
> >
> > Output:
> >
> > >>>
> > 1.8.0rc3
> > (1, 2, 7)
> >
> >
> > >>>
> >
> > On Sun, Feb 24, 2008 at 4:33 PM, Brian Fisher <[EMAIL PROTECTED]
> >
> > wrote:
> >
> > > This script creates a centered window for me on Windows XP with
> 1.8.0rc3
> > > ----------------------------------
> > > import pygame
> > > import os
> > >
> > > print pygame.ver
> > > print pygame.get_sdl_version()
> > >
> > > pygame.init()
> > >
> > >
> > > os.environ["SDL_VIDEO_CENTERED"] = "1"
> > > pygame.display.set_mode((320,240))
> > >
> > > running = True
> > > while running:
> > >    for event in pygame.event.get():
> > >        if event.type == pygame.QUIT or (event.type == pygame.KEYDOWN
> > > and event.key == pygame.K_ESCAPE):
> > >            running = 0
> > >    pygame.display.flip()
> > >
> > > ----------------------------------
> > >
> > > if it doesn't work for you, what OS are you running, and what console
> > > output did you get (i.e. what version of pygame and sdl)?
> > >
> >
> >
> >
> > --
> > - PyMike
>



-- 
- PyMike

Reply via email to