Re: [Tutor] Importing Pygame

2014-01-28 Thread Alan Gauld
On 28/01/14 20:47, Glenn Lester wrote: I think you typed a comma instead of a period when you coded import pygame.sys Or it may be my display. Check it out. No, it was deliberate. He was importing pygame *and* sys. A comma separated import list is fine. I agree with Dave it looks like there ar

Re: [Tutor] Importing Pygame

2014-01-28 Thread Glenn Lester
I think you typed a comma instead of a period when you coded import pygame.sys Or it may be my display. Check it out. Best of Luck On Tue, Jan 28, 2014 at 1:13 PM, myles broomes wrote: > I am trying to import pygame but everytime I do, I get an ImportError. > Here is the code I'm trying to run:

Re: [Tutor] Importing Pygame

2014-01-28 Thread Dave Angel
myles broomes Wrote in message: > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > I'm guessing you're attempting to post here in this text newsgroup using h

[Tutor] Importing Pygame

2014-01-28 Thread myles broomes
I am trying to import pygame but everytime I do, I get an ImportError. Here is the code I'm trying to run: import pygame,sys from pygame.locals import * pygame.init() DISPLAYSURF=pygame.display.set_mode((400,300)) pygame.display.set_caption('Hello World!') while True: #main game loop for eve