<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def removeRow(self, triggered):
 """Removes a row to the model. This method is also a slot. Args: triggered (bool):
 If the corresponding button was activated, the selected row will be removed from the model. """

        if triggered:
            model = self.tableView.model()
            selection = self.tableView.selectedIndexes()

            rows = [index.row() for index in selection]
            model.removeDataFrameRows(set(rows))
            self.sender().setChecked(False)