#NEWLINE# def compute( self ) : #NEWLINE# #INDENT# ' compute() -> None\n        Actually compute nothing\n        ' #NEWLINE# self . observer = self . force_get_input ( 'Observer' ) #NEWLINE# self . handler = self . force_get_input ( 'Handler' , '' ) #NEWLINE# self . shareddata = self . force_get_input_list ( 'SharedData' ) #NEWLINE# if ( len ( self . shareddata ) == 1 ) : #NEWLINE# #INDENT# self . shareddata = self . shareddata [ 0 ] #NEWLINE# #UNINDENT# if self . observer : #NEWLINE# #INDENT# source = urllib . unquote ( self . handler ) #NEWLINE# observer = self . observer . vtkInstance #NEWLINE# for e in vtkInteractionHandler . vtkEvents : #NEWLINE# #INDENT# f = ( e [ 0 ] . lower ( ) + e [ 1 : ] ) #NEWLINE# f = f . replace ( 'Event' , 'Handler' ) #NEWLINE# source += ( ( ( '\nif locals().has_key("%s"):\n' % f ) + ( '\tobserver.AddObserver("%s", ' % e ) ) + 'self.eventHandler)\n' ) #NEWLINE# #UNINDENT# exec ( source ) #NEWLINE# if hasattr ( self . observer . vtkInstance , 'PlaceWidget' ) : #NEWLINE# #INDENT# self . observer . vtkInstance . PlaceWidget ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . set_output ( 'Instance' , self )