from tkinter import *

class End_Screen(Frame):
  def __init__(self, master, exit_screen):
      """Initialize Frame."""
      self.exit_screen = exit_screen
      super(End_Screen, self).__init__(master, background="coral")
      self.grid()
      self.create_widgets()

  def create_widgets(self):
      Label(self, text="We hope you", font="Courier 40 bold", bg="coral",
            fg="firebrick3").grid(row=0, column=1, sticky=N)

      Label(self, text="enjoyed playing", font="Courier 40 bold",bg="coral",
            fg="firebrick3").grid(row=1, column=1, sticky=N)

      Label(self, text="Phoenix Word Search!", font="Courier 45 bold",bg="coral",
            fg="firebrick3").grid(row=2, column=1, sticky=N)

      Label(self, text="", font="Courier 45 bold",bg="coral",
            fg="firebrick3").grid(row=3, column=1, sticky=N)

      Button(self, text="Exit", bg="tomato", fg="black",
             font="Courier 10 bold", bd=5, command=self.exit
             ).grid(row=4, column=1, sticky=N)

      imageSmall = PhotoImage(file="smallerPhoenix copy.gif")
      w = Label(self,
                image=imageSmall
                ).grid(row=5, column=1,sticky=N)
      w.photo = imageSmall


  def exit(self):
      self.exit_screen()