<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def selection(self, index):
 """Update selected row."""

        self.update()
        self.isActiveWindow()
        self._parent.delete_btn.setEnabled(True)