title: tkinter, message box close program on click "ok"
body: <p>How do I close the entire program once the user hits <strong>OK</strong> in the message box? </p>
  
  <p>Here is the portion of the script that contains the button and command:</p>
  
  <pre><code>class Application(tk.Tk):
      def create_options(self):
  
          tk.Button(self,
                    text = "Begin search", command=self.pop_up1
                    ).place(x=465, y=285)
  
      def pop_up1(self):
          """shows submitted box"""
          tkMessageBox.showinfo(title="Finished", message="Query Submitted")
  </code></pre>