title: AttributeError: 'Program' object has no attribute 'frame'
body: <p>Hi I'm new to python and cant figure out why the error 'AttributeError: 'Program' object has no attribute 'frame' is happening.
  Here is the code:</p>
  
  <pre><code>from tkinter import *
  
  
  class Program():
  
      def __init__(self, master):
          frame = Frame(master, bg='ghostwhite')
          frame.pack(fill=BOTH, expand=1)
          #menu
          self.menu = Menu(frame)
          self.frame.config(menu = self.menu)
          self.select = Menu(self.menu)
          self.menu.add_cascade(label = 'Select', menu = self.new)
          self.select.add_command(label = 'Select all', command = self.new)
  
       def new():
          print ('newfile')
  
  root = Tk()
  program = Program(root)
  w = 800
  h = 500
  ws = root.winfo_screenwidth()
  hs = root.winfo_screenheight()
  x = (ws/2) - (w/2)
  y = (hs/2) - (h/2)
  root.geometry('%dx%d+%d+%d' % (w, h, x, y))
  root.title('Cafe Au Lait')
  
  root.mainloop()
  </code></pre>
  
  <p>Thanks in advance for any help!</p>