#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 ( self . item . action . style == 'radio' ) : #NEWLINE# #INDENT# if action . checked : #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 . _skip_menu_event = True #NEWLINE# self . control . Check ( item . checked ) #NEWLINE# self . _skip_menu_event = False #NEWLINE# return