code: def cursor_position(self):
          
          return (self._editor.textCursor().blockNumber(),
                  self._editor.textCursor().columnNumber())
docs: 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)