#NEWLINE# def __init__( self , manager , parent , controller ) : #NEWLINE# #INDENT# ' Creates a new tree. ' #NEWLINE# wx . Menu . __init__ ( self ) #NEWLINE# self . _parent = manager #NEWLINE# self . _manager = manager #NEWLINE# self . _controller = controller #NEWLINE# self . menu_items = [ ] #NEWLINE# self . refresh ( ) #NEWLINE# self . _manager . on_trait_change ( self . refresh , 'changed' ) #NEWLINE# self . _manager . on_trait_change ( self . _on_enabled_changed , 'enabled' ) #NEWLINE# return