import pygame import sys pygame.init() displaysurface = pygame.display.set_mode((400,300)) pygame.display.set_caption("Task0") #mySurface.fill( (0,255, 0)) #Green #mySurface.fill( (0,0, 255)) #Blue #mySurface.fill( (255,0, 0)) #Red while True: events = pygame.event.get() for event in events: if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()