title: How to use variable in pyqt MessageBox
body: <p>I'm using MessageBox to get user input if data is to be added to database, but I don't know how to place my variables inside the actual message. MessageBox function looks like this:</p>
  
  <pre><code>def message(self, par_1, par_2):
      odp = QMessageBox.question(self, 'Information', "No entry. Would you like to add it to DB?", QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
      if odp == QMessageBox.Yes:
          return True
      else:
          return False
  </code></pre>
  
  <p>Function is called like this:</p>
  
  <pre><code>self.message(autor_firstname, autor_lastname)
  </code></pre>
  
  <p>I tried adding:</p>
  
  <pre><code>odp.setDetailText(par_1, par_2)
  </code></pre>
  
  <p>But it didn't work as expected. Additionally I have problem when user clicks "No". Program crashes instead of returning to main window.</p>