title: PyQt5 - How to recognize which button is pressed
body: <p>I was looking and saw some places that people use a sender() and then convert it to text, sender.text()</p>
  
  <p>like this:</p>
  
  <pre><code>@pyqtSlot()
  def on_click(self):
      sender = self.sender()
      printf(sender.text())
      self.openFileNameDialog(0)
  </code></pre>
  
  <p>But my code exits the going to the sender.text()</p>
  
  <p>I want to pass the specific button to the function <code>self.openFileNameDialog(0)</code></p>