title: Python MessageBox with Icons using ctypes and windll
body: <p>So, I'm looking for a way to create a simple Messagebox in Python using just the native libraries and came across several posts, but namely <a href="https://stackoverflow.com/questions/2963263/how-can-i-create-a-simple-message-box-in-python">this one</a>, leveraging ctypes to import the win32.dll and call its MessageboxA function.</p>
  
  <pre><code>import ctypes  # An included library with Python install.
  ctypes.windll.user32.MessageBoxA(0, "Your text", "Your title", 1)
  </code></pre>
  
  <p>Pretty cool stuff, I think.</p>
  
  <p>--- But ---</p>
  
  <p>When I when to look at the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505%28v=vs.85%29.aspx" rel="noreferrer">documentation for MessageboxA on Microsoft's site</a>, turns out this MessageboxA function can do a whole lot more. I just don't know how to properly pass the parameters in.</p>
  
  <p>I'm trying to figure out the standard method for raising the messagebox with an icon in it, like the systemhand or warning icon beside the message. Microsoft's documentation indicates one should enter this into the uType parameter, which is the last one, but I haven't been able to make any progress here other than changing the messagebox's buttons.</p>