title: How can I create a simple message box in Python?
body: <p>I'm looking for the same effect as <code>alert()</code> in JavaScript.</p>
  
  <p>I wrote a simple web-based interpreter this afternoon using Twisted.web. You basically submit a block of Python code through a form, and the client comes and grabs it and executes it. I want to be able to make a simple popup message, without having to re-write a whole bunch of boilerplate wxPython or TkInter code every time (since the code gets submitted through a form and then disappears).</p>
  
  <p>I've tried tkMessageBox:</p>
  
  <pre><code>import tkMessageBox
  tkMessageBox.showinfo(title="Greetings", message="Hello World!")
  </code></pre>
  
  <p>but this opens another window in the background with a tk icon. I don't want this. I was looking for some simple wxPython code but it always required setting up a class and entering an app loop etc. Is there no simple, catch-free way of making a message box in Python?</p>