#NEWLINE# def showError( self ) : #NEWLINE# #INDENT# errorMsg = 'Invalid shape or size. Axis requiers a 1D \narray that matches in size.' #NEWLINE# errorMessageBox = QtGui . QMessageBox ( self ) #NEWLINE# errorMessageBox . setWindowTitle ( 'Error' ) #NEWLINE# errorMessageBox . setText ( errorMsg ) #NEWLINE# errorMessageBox . show ( )