[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] refresh problem
- To: pygame-users@xxxxxxxx
- Subject: [pygame] refresh problem
- From: pistacchio <pistacchio@xxxxxxxxx>
- Date: Tue, 04 Sep 2007 08:21:23 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 04 Sep 2007 02:21:50 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=Gx6NsMgoQ6zGLJIiCW5UtGsOSj4kaAdt5XWQxBrpbCA0wg8e/6cr5n+Yv49B9elRUw+cYqR04djBd45vsFDwDsaJBEc3RDa/ZMakGhleo0rPYdTadpLXa6y27FMHPEOyI376sk3NEP7LUg6oy2zGmXUAJqyZsp+XhJyqoH6mJng=
- 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=SPRyqt6r2DJTxqHJafQNoG0jt9AIZ2D7nHpveiUzqRwpq54HL6M1JxQi2x1bE7Y9XpCl2eWyIEPuHhs8fQaDZTyQBwkFLG/XvSwmDQYs3sfu2o3ofO4aUhRdgm9isE3oDEV4F/x5YVQWKFGhb4IsY0QTO38EhSzKhItNJs2a0BY=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
hi to all!
this is my first post in pygame (windows xp, python 2.5). i've started
using pygame some days ago and after a bit of coding i'm completely
stuck. the problem is that even the simpliest code like
import pygame
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode( (640,480) )
done = False
while not done:
pygame.display.flip()
for event in pygame.event.get():
if event.type == QUIT:
done = True
get the game window to freeze. it just doesn't update and acts
strangely. the window is like "transparent", it makes me see what is
behind it. if i minimize it and then reopen it, it shows the content,
but if i drag it around the screen, it sort of "collects" the images it
overlaps.. i've tried various code to get around the problem, like
various flags in set_mode, flip and update and event pumping but nothing
seems to work. it shows no problem in fullscreen mode, though.
any idea? thanks in advance,
gustavo