import pygame, os, sys from pygame.locals import * pygame.init() screen = pygame.display.set_mode((400, 400), 0, 32) while True: for event in pygame.event.get(): if event.type == QUIT: exit() pygame.display.update()
and here is what happens when i run it (I am using Ubuntu on my brand-new intel quad-core computer)
yanom@yanom-desktop:~$ cd app yanom@yanom-desktop:~/app$ python test.py File "test.py", line 6 while True: ^ SyntaxError: invalid syntax yanom@yanom-desktop:~/app$
can someone please tell me why "while True:" is invalid syntax?

New Topic/Question
Reply



MultiQuote





|