#NEWLINE# def on_pick( self , vtk_picker , event ) : #NEWLINE# #INDENT# ' Dispatch the pick to the callback associated with the\n            corresponding mouse button.\n        ' #NEWLINE# picker = tvtk . to_tvtk ( vtk_picker ) #NEWLINE# for ( event_type , event_picker ) in self . _active_pickers . items ( ) : #NEWLINE# #INDENT# if ( button is event_picker ) : #NEWLINE# #INDENT# for ( callback , type , button ) in self . callbacks : #NEWLINE# #INDENT# if ( ( type == event_type ) and ( button == self . _current_button ) ) : #NEWLINE# #INDENT# callback ( picker ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# break