title: How do I create a critical error message using PySide?
body: <p>I seem to be hitting a brick wall.  No matter what I do, creating a critical error Message Box just doesn't seem to be working.  Here's what I've tried thus far:</p>
  
  <pre><code>flags = QtGui.QMessageBox.StandardButton.Abort
  flags |= QtGui.QMessageBox.StandardButton.Ignore
  
  result = QtGui.QMessageBox.critical(
      self,
      'CRITICAL ERROR',
      'Error Message',
      flags
      )
  </code></pre>
  
  <p>As taken from <a href="http://www.blog.pythonlibrary.org/2013/04/16/pyside-standard-dialogs-and-message-boxes/" rel="nofollow">this tutorial</a> (old I know, but it's been helpful thus far).  Doing this however, brings up the following error:</p>
  
  <blockquote>
    <p>'PySide.QtGui.QMessageBox.critical' called with wrong argument types:</p>
    
    <p>PySide.QtGui.QMessageBox.critical(CreateMessage, str,
    StandardButtons)</p>
    
    <p>Supported signatures:</p>
    
    <p>PySide.QtGui.QMessageBox.critical(PySide.QtGui.QWidget, unicode,
    unicode, PySide.QtGui.QMessageBox.StandardButtons = QMessageBox.Ok,
    PySide.QtGui.QMessageBox.StandardButton = NoButton)</p>
    
    <p>PySide.QtGui.QMessageBox.critical(PySide.QtGui.QWidget, unicode,
    unicode, PySide.QtGui.QMessageBox.StandardButton,
    PySide.QtGui.QMessageBox.StandardButton)</p>
  </blockquote>
  
  <p>I've also tried the following:</p>
  
  <pre><code>result = QtGui.QMessageBox.critical(
      self,
      'CRITICAL ERROR',
      'Error Message',
      QtGui.QMessageBox.StandardButton.Abort
      )
  
  # Or this....
  
  result = QtGui.QMessageBox.critical(
      self,
      'CRITICAL ERROR', 
      'Error Message',
      QtGui.QMessageBox.Abort
      )
  </code></pre>
  
  <p>None of these seem to work properly.  How do I create a critical error message box?</p>