parameters: (self, value)
docstring: Setting cursor position.
docstring_summary: Setting cursor position.
docstring_tokens: Setting cursor position .
function: def cursor_position(self, value):
          """
          Setting cursor position.
          """
          assert isinstance(value, int)
          assert value <= len(self.text)
  
          changed = self._set_cursor_position(value)
  
          if changed:
              self._cursor_position_changed()
function_tokens: def cursor_position ( self , value ) : assert isinstance ( value , int ) assert value <= len ( self . text ) changed = self . _set_cursor_position ( value ) if changed : self . _cursor_position_changed ( )