Sep-09-2018, 02:47 AM
Im trying to learn to use pygame but wheni run this code it gets error for all the attributes of pygame:
import pygame from pygame import * pygame.init() gameDisplay = pygame.display.set_mode((800,600)) pygame.dislpay.setcaption('Pygame Game') clock = pygame.time.Clock() crashed = False while not crashed: for event in pygame.event.get(): if event.type == pygame.QUIT: crashed = True print(event) pygame.display.update() clock.tick(30) pygame.quit() quit()Please tell me how to fix that. Im working in Ubuntu 16.04