<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def current_index(self):

 """Get the currently selected index in the parent table view."""

        i = self._parent.proxy_model.mapToSource(self._parent.currentIndex())
        return i