title: Function to close the window in Tkinter
body: <pre><code>import tkinter
  
  
  class App():
     def __init__(self):
         self.root = Tkinter.Tk()
         button = Tkinter.Button(self.root, text = 'root quit', command=self.quit)
         button.pack()
         self.root.mainloop()
  
     def quit(self):
         self.root.destroy 
  
  app = App()
  </code></pre>
  
  <p>How can I make my <code>quit</code> function to close the window?</p>