This is the code:
import pygame, sys
from pygame.locals import *
pygame.init()
DISPLAYSURF = pygame.display.setmode((400, 300))
pygame.display.set_caption('Hello World!')
while True: # Main game loop
for event in pygame.event_get():
if event.type == QUIT:
pygame.quit()
sys.exit()
pygame.display.update()
I am getting this error:
TypeError: function missing required argument 'dest' (pos 2) error
While running the code.