#NEWLINE# def _on_action_enabled_changed( self , action , trait_name , old , new ) : #NEWLINE# #INDENT# ' Called when the enabled trait is changed on an action. ' #NEWLINE# if ( self . control is not None ) : #NEWLINE# #INDENT# self . control . setEnabled ( action . enabled )