[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] os.environ on macintosh
- To: pygame-users@xxxxxxxx
- Subject: [pygame] os.environ on macintosh
- From: altern <altern2@xxxxxxxxx>
- Date: Sun, 04 Feb 2007 11:27:09 +0100
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sun, 04 Feb 2007 05:26:47 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=svy9cv0LS7hbj7i2avazrOIMnbkUoCxcVzYfXdh/NAgUsGIYwaJOriZaNRdxpOyYolAVpHHh9OUEWRE3FM5tEuiLjCZSGA6JSxrmXCKCe3CcKPmtpCNDFIUe0yrpd447bW6EwNyHCBh3i6aRJ+77iTuo4+TNibRVTqeKW/kYTjw=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Icedove 1.5.0.8 (X11/20061128)
hi all
Yesterday I tested on a mac some code I have been developing on linux
and windows. There was a problem with the drawing surface being
displaced from the window where it was contained. I found that this was
causing the problem:
os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (x,y)
Setting x,y to 0,0 correctly shown the drawing area fitting the window,
setting it to 10,20 would move the drawing area 10 pixels right and 20
pixels up (!) from the bottom, and so on.
However the actual position of the window in the screen was not affected
by this command unlike windows and linux.
I guess this is something to do with the way mac interprets those
environmental variables. I would like to find a way to archive on mac
the same effect I get on win/linux (position the SDL window within the
desktop), any ideas?
thanks!
enrike