title: How can I reprogram the 'Ok' button in the Tkinter Messagebox module
body: <p>I'm working on my very first python GUI, and I want to close all the previous windows from the code after clicking on the 'OK' button of the Message </p>
  
  <pre><code>messagebox.showinfo('Access Granted', 'Your data has been retrieved.')
  </code></pre>