def set(self, value):
        """Set value on line and perform extra setups."""
        ### clear the current text on line (if any)
        self.line.clear()

        ### set text on line by using a special extending
        ### method
        self.line.extend_from_string(value)

        ### set the cursor's column number to the length of
        ### the line, which has the effect of leaving the
        ### cursor positioned at the end of the text
        self.col = len(self.line)

        ### reposition cursor so that it sits in the
        ### appropriate position according to its column
        ### number
        self.reposition()
Set value on line and perform extra setups.
nodezator/textman/entryedition/cursor.py