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

[pygame] [PYGAME] Noob Help.



Ok I'm just trying to get un-noob with pygame and python it self.

Alright I was reading on a tutorial from the pygame site located here: http://www.pygame.org/docs/tut/intro/intro.html
So I'm trying to find out whats up with this:

14        for event in pygame.event.get():
15            if event.type == pygame.QUIT: sys.exit()

So i've looked @ the python document for the for loop and im just trying to figure out the event.get() array can someone tell me how we got event.type and how does pygame.QUIT : sys.exit() work?


Thanks in advanced for the help.

Regards,

Lamonte Harris.



--
Join phpdiscovery.com Now!