from tkinter import * import random import time def MainMenu(): self = Tk() #Objects self.lbDirections = Label(text="Choose a Game Mode",bg="black",fg="white") self.lbDirections.pack() self.btnSinglePlayer = Button(text="Single Player") self.btnSinglePlayer.pack() self.btnMultiPlayer = Button(text="Multi-Player") self.btnMultiPlayer.pack() self.btnTenWaveChallenge = Button(text="Ten Wave Challenge") self.btnTenWaveChallenge.pack() def SinglePlayerChooseDifficulty(event): self.lbDirections.config(text="Choose a Pace") self.btnSinglePlayer.destroy() self.btnMultiPlayer.destroy() self.btnTenWaveChallenge.destroy() self.btnDifficultyEasy = Button(text="Easy") self.btnDifficultyEasy.pack() self.btnDifficultyMedium = Button(text="Medium") self.btnDifficultyMedium.pack() self.btnDifficultyHard = Button(text="Hard") self.btnDifficultyHard.pack() self.btnMainMenu = Button(text="Main Menu") self.btnMainMenu.pack(side=BOTTOM) self.lbControls = Label(text="Use arrow keys to move and space bar to shoot",bg="black",fg="white") self.lbControls.pack() self.btnMainMenu.bind('