title: Disable window controls when a messagebox is created in tkinter
body: <p>Is there any way to disable all windows when a messagebox popup is created in tkinter?</p>
  <p>Here's the code:</p>
  <pre><code>from tkinter import *
  from tkinter import messagebox
  
  def show():
      messagebox.showinfo(&quot;Test Popup&quot;, &quot;Hello world&quot;)
  
  root = Tk()
  root.title(&quot;Main Window&quot;)
  root.geometry(&quot;500x500&quot;)
  
  toplevel = Toplevel(root)
  toplevel.title(&quot;Toplevel Window&quot;)
  toplevel.geometry(&quot;300x300&quot;)
  
  show_button = Button(root , text = &quot;Show popup&quot; , command = show)
  show_button.place(x = 200 , y = 200)
  
  mainloop()
  </code></pre>
  <p>Here when the messagebox pops up, I don't want the user to be able to interact with any other <code>Tk</code> or <code>Toplevel</code> windows until that popup is destroyed.</p>
  <p><em>(I tried using the <code>parent</code> attribute of the <code>messagebox</code>, but it only disables one window.)</em></p>
  <p>Is there any way to achieve this in tkinter?</p>
  <p>It would be great if anyone could help me out.</p>