title: How to customise a pyqt message box?
body: <p>pyqt4</p>
  
  <pre><code>msgBox = QtGui.QMessageBox()
  msgBox.setText('Which type of answers would you like to view?')
  msgBox.addButton(QtGui.QPushButton('Correct'), QtGui.QMessageBox.YesRole)
  msgBox.addButton(QtGui.QPushButton('Incorrect'), QtGui.QMessageBox.NoRole)
  msgBox.addButton(QtGui.QPushButton('Cancel'), QtGui.QMessageBox.RejectRole)
  
  if msgBox == QtGui.QMessageBox.YesRole:
       Type = 1
        Doc()
  elif msgBox == QtGui.QMessageBox.NoRole:
       Type = 0
       Bank()
  else:
      ret = msgBox.exec_()
  </code></pre>
  
  <p>This displays a message box however when an option is clicked, nothing happens and the box closes. How do I get the next function to run?</p>