#NEWLINE# def set_text( self , sel , text ) : #NEWLINE# #INDENT# '\n        Set text value\n\n        :type sel: str\n        :type text: str\n        ' #NEWLINE# items = self . get ( sel ) #NEWLINE# res = 0 #NEWLINE# for item in items : #NEWLINE# #INDENT# item . text = text_type ( text ) #NEWLINE# res += 1 #NEWLINE# #UNINDENT# return res