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

Re: [pygame] Pygame graphics window Freezes



ryan luna wrote:
hey, im trying to follow the Tut on the pygame site, but whenever i open a new window like

window = pygame.display.set_mode((468, 60))

the window opens but it crashes, im running for the IDE like
it says to, but i don't know whats going wrong -_-.

btw, i do import pygame and all that stuff.




I'm on Windows, and in general, I can't run Pygame from the shell like you mention.


Put your test code in a file, and execute the file instead.
Put a 'pygame.event.pump()' just before processing the events.
Issue a 'pygame.quit()' at the end of the code, whether the tutorial says to or not.


If you do all that, you can run it from IDLE easily enough!

--Kamilche