#NEWLINE# def _on_action_checked_changed( self , action , trait_name , old , new ) : #NEWLINE# #INDENT# ' Called when the checked trait is changed on an action. ' #NEWLINE# if ( action . style == 'radio' ) : #NEWLINE# #INDENT# if new : #NEWLINE# #INDENT# for item in self . item . parent . items : #NEWLINE# #INDENT# if ( item is not self . item ) : #NEWLINE# #INDENT# item . action . checked = False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# self . tool_palette . toggle_tool ( self . tool_id , new ) #NEWLINE# return