#NEWLINE# def _confirm_large_data( self , data ) : #NEWLINE# #INDENT# warn_msg = ( 'WARNING: Data set has %i points, and may render slowly. Continue?' % data . size ) #NEWLINE# title = 'Add large data set?' #NEWLINE# ok = QtGui . QMessageBox . Ok #NEWLINE# cancel = QtGui . QMessageBox . Cancel #NEWLINE# buttons = ( ok | cancel ) #NEWLINE# result = QtGui . QMessageBox . question ( self , warn_msg , warn_msg , buttons = buttons , defaultButton = cancel ) #NEWLINE# return ( result == ok )