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

Re: [pygame] refresh problem



pistacchio wrote:
while not done:
    pygame.display.flip()
    for event in pygame.event.get():
        if event.type == QUIT:
            done = True

Note that pygame.event.get() doesn't block, so you're
spinning in an extremely busy loop here. The screen
mightn't be getting a chance to update.

Try putting a pygame.event.wait() call in the loop.

--
Greg