#NEWLINE# def add_to_menu( self , menu_item ) : #NEWLINE# #INDENT# ' Adds a menu item to the menu bar being constructed.\n        ' #NEWLINE# action = menu_item . item . action #NEWLINE# self . eval_when ( action . enabled_when , menu_item , 'enabled' ) #NEWLINE# self . eval_when ( action . checked_when , menu_item , 'checked' )