#NEWLINE# def onCursorMode( self , event = None , mode = 'zoom' ) : #NEWLINE# #INDENT# self . panel . cursor_mode = mode #NEWLINE# if ( self is not None ) : #NEWLINE# #INDENT# if ( 1 == event . GetInt ( ) ) : #NEWLINE# #INDENT# self . panel . cursor_mode = 'lasso' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 2 == event . GetInt ( ) ) : #NEWLINE# #INDENT# self . panel . cursor_mode = 'prof'