#NEWLINE# def setItemText( self , index , text ) : #NEWLINE# #INDENT# self . checkIndex ( index ) #NEWLINE# if ( text is None ) : #NEWLINE# #INDENT# console . error ( 'Cannot set an option to have null text' ) #NEWLINE# return #NEWLINE# #UNINDENT# DOM . setOptionText ( self . getElement ( ) , text , text )