title: Tkinter Unknown Option -menu
body: <p>I keep getting the error: </p>
  
  <blockquote>
    <p>_tkinter.TclError: unknown option "-menu"</p>
  </blockquote>
  
  <p>My MWE looks like: </p>
  
  <pre><code>from tkinter import *
  
   def hello():
      print("hello!")
  
   class Application(Frame):
      def createWidgets(self):       
         self.menuBar = Menu(master=self)
         self.filemenu = Menu(self.menuBar, tearoff=0)
         self.filemenu.add_command(label="Hello!", command=hello)
         self.filemenu.add_command(label="Quit!", command=self.quit)
  
      def __init__(self, master):
         Frame.__init__(self, master)
         self.pack()
         self.createWidgets()
         self.config(menu=self.menuBar)
  
   if __name__ == "__main__":
      root = Tk()
      ui = Application(root)
      ui.mainloop()
  </code></pre>
  
  <p>I'm on OS X 10.8 using python 3. Why am I getting the unknown option error?</p>