title: How does a button delete a row in a QTableWidget where it sits
body: <p>Basically I have a delete button for each row in a QTableWidget
  for the click event.</p>
  <p>How do I find the row index of that particular button that get clicked?</p>
  <pre><code>class WidgetGallery(QDialog):
      def __init__(self, parent=None):
          super(WidgetGallery, self).__init__(parent)
          self.table = QTableWidget(10, 3)
          col_1 = QTableWidgetItem(&quot;first_col&quot;)
          col_2 = QTableWidgetItem(&quot;second_col&quot;)
          deleteButton = QPushButton(&quot;delete_this_row&quot;)
          deleteButton.clicked.connect(self.deleteClicked)
          self.table.setItem(0, 0, col_1)
          self.table.setItem(0, 1, col_2)
          self.table.setCellWidget(0, 2, deleteButton)
          self.mainLayout = QGridLayout()
          self.mainLayout.addWidget(self.table)
  
  
      def deleteClicked(self):
          sender = self.sender()
          row = sender.parent().........?
  </code></pre>