def set_edit_pos(self, pos):
        if pos < 0:
            pos = 0
        if pos > len(self._edit_text):
            pos = len(self._edit_text)
        self.highlight = None
        self.pref_col_maxcol = None, None
        self._edit_pos = pos
        self._invalidate()
Set the cursor position with a self.edit_text offset.
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/widget.py/Edit.set_edit_pos