############################################################################# #The main menu classes for pong # ############################################################################# import pygame, os, sys from pygame.locals import * class menu(): def DrawMenu(self): #setup the screen# self.screen = pygame.display.set_mode ((800,600)) pygame.display.set_caption ("pong") #set image variables and load background# self.BackGround = pygame.image.load (os.path.join ("Data", "menubackground.jpeg")) self.BackGround = self.BackGround.convert() self.screen.blit(self.BackGround,(0,0))