#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# self . tool_bar . EnableTool ( self . control_id , ( trait_name . enabled and action . visible ) ) #NEWLINE# return