#NEWLINE# def selectDefinedVariableEvent( self ) : #NEWLINE# #INDENT# if ( self . currentListIndex is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( name , var ) = self . definedVars [ self . currentListIndex . row ( ) ] #NEWLINE# if self . varIsValid ( name ) : #NEWLINE# #INDENT# self . myParent . setAlteredWeights ( var ) #NEWLINE# self . close ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . showError ( )