So it seems like every time I run pygame, it crashes when I try to add graphics. For example, this code works:
import pygame, sys
pygame.init()
screen = pygame.display.set_mode([640, 480])
#screen.fill([255,255,255])
#pygame.draw.circle(screen, [255,0,0],[100,100], 30, 0)
pygame.display.flip()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()
However, when i remove the pound signs, the pygame window will flash open and then close immediately and a crash report appears. Python doesn't identify any errors in my code either. Can someone please point out why having the screen.fill and the pygame.draw lines causes pygame to crash.
Im using a mac and python 2.7.9