'Returns the QTextCursor position. The position is a tuple made up of
the line number (0 based) and the column number (0 based).
:return: tuple(line, column)'

def cursor_position(self):

    return (self._editor.textCursor().blockNumber(), self._editor.textCursor().columnNumber())
