#NEWLINE# def _connect( self ) : #NEWLINE# #INDENT# 'Wires up all the event handlers.' #NEWLINE# w = self . widget #NEWLINE# w . add_observer ( 'InteractionEvent' , self . _on_interaction_event ) #NEWLINE# w . on_trait_change ( obj . _on_normal_set , 'normal_to_x_axis' ) #NEWLINE# w . on_trait_change ( self . _on_normal_set , 'normal_to_y_axis' ) #NEWLINE# w . on_trait_change ( self . _on_normal_set , 'normal_to_z_axis' ) #NEWLINE# w . on_trait_change ( self . _on_interaction_event ) #NEWLINE# for obj in ( self . plane , w ) : #NEWLINE# #INDENT# obj . on_trait_change ( self . render )