title: How to resolve "_tkinter.TclError: unknown option"?
body: <p>I am learning python tkinter but I have an error whenever I tried to compile it:</p>
  
  <pre><code>Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/lib/python2.7/dist-packages/spyderlib/ 
  widgets/externalshell/sitecustomize.py", line 540, in runfile 
  execfile(filename, namespace)
  File "/home/jason/.spyder2/.temp.py", line 14, in &lt;module&gt;
  menu.config(menu=menu)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1274, 
  inconfigure
  return self._configure('configure', cnf, kw)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1265, 
  in _configure
  self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
  _tkinter.TclError: unknown option "-menu").
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>from tkinter import *
  
  def hello():
      print "hello"    
  
  root = Tk()
  menu = Menu(root)
  menu.config(menu=menu)
  menu.add_command(label ="new",command = hello)
  
  root.mainloop()
  </code></pre>