#NEWLINE# def set_index( self , index ) : #NEWLINE# #INDENT# ' Set the current index of the ComboBox.\n\n        ' #NEWLINE# self . _guard |= INDEX_GUARD #NEWLINE# try : #NEWLINE# #INDENT# self . widget . setCurrentIndex ( self ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . _guard &= ( ~ INDEX_GUARD )