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

Re: [pygame] beginner problem.



Elvelind Grandin wrote:
Hi. im trying to get started with pygame but have runned in to some problem.
>
while 1:
        pygame.display.flip()
You've already gotten some good tips on where your text is being rendered. I would also recommend adding some trivial event pumping into the final loop. You could also make it listen for the QUIT, so your window responds to the close button on the window.

while 1:
if pygame.event.wait().type == QUIT:
sys.exit()
pygame.display.flip()