[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] [PYGAME] Noob Help.
>> On Fri, 13 Apr 2007, python@xxxxxxxxxxxx wrote:
>>> I think I know the problem, its the text pad I'm using. I have
>>> NotePad++
>>> anyone recommend any besides Dr Python (atm I can't use it+ its a
>>> little
>>> slow on this comp).
>>
>> http://wiki.python.org/moin/PythonEditors
>>
>> (Google search "python editor windows")
>>
>>
>> Richard
>>
> Yep I just checked there thanks mate.
>
> Regards,
> Lamonte.
>
Alright I got an error saying:
Syntax Error Line 6:
pygame.init()
Script:
import sys
import pygame
from pygame.locals import *
pygame.init()
size = width, height = 320, 240
speed = [2, 2]
black = 0, 0, 0
screen = pygame.display.set_mode(size)
while 1:
for event in pygame.event.get():
if event.type == pygame.QUIT: sys.exit()
screen.fill(black)
pygame.display.flip()