This code snippet will show an image. Note: You will need to run this code in a directory
that also contains a diplomacy.gif file
import pygame
DISPLAYWIDTH = 1080
DISPLAYHEIGHT = 800
DISPLAYSURF = pygame.display.set_mode((DISPLAYWIDTH, DISPLAYHEIGHT)) 
#pygame.display.toggle_fullscreen()      
pygame.display.set_caption('Hello Caption')
print ( "For debugging")
WHITE = (255, 255, 255) 
DISPLAYSURF.fill((WHITE)) #Clear the background
background = pygame.image.load ('diplomacy.gif') # Image file
DISPLAYSURF.blit (background,(0,0))               
pygame.display.update() 
# Wait for a mouse button down
quit = False
while not quit:
    ev = pygame.event.get()
    for event in ev:
       if event.type == pygame.MOUSEBUTTONDOWN:
          quit = True