#NEWLINE# def defineVariable( self , file , var , axesArgString ) : #NEWLINE# #INDENT# ' Check if a variable with the same name has already been defined.\n        If so, warn user and prompt for a new variable name.  Otherwise,\n        add the variable to the ListWidget\n        ' #NEWLINE# if self . isVariableDefined ( var . id ) : #NEWLINE# #INDENT# self . warningWidget . showWarning ( var . id , file , var , axesArgString ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . addVariable ( var . id , file , var , axesArgString )