#NEWLINE# def set_edit_text( self , text ) : #NEWLINE# #INDENT# '\n        Set the edit text for this widget.\n\n        :param text: text for editing, type (bytes or unicode)\n                     must match the text in the caption\n        :type text: bytes or unicode\n\n        >>> e = Edit()\n        >>> e.set_edit_text(u"yes")\n        >>> print e.edit_text\n        yes\n        >>> e\n        <Edit selectable flow widget \'yes\' edit_pos=0>\n        >>> e.edit_text = u"no"  # Urwid 0.9.9 or later\n        >>> print e.edit_text\n        no\n        ' #NEWLINE# text = self . _normalize_to_caption ( text ) #NEWLINE# self . highlight = None #NEWLINE# self . _emit ( 'change' , self ) #NEWLINE# self . _edit_text = text #NEWLINE# if ( self . edit_pos > len ( text ) ) : #NEWLINE# #INDENT# self . edit_pos = len ( text ) #NEWLINE# #UNINDENT# self . _invalidate ( )