#NEWLINE# def items( self ) : #NEWLINE# #INDENT# ' Get the items defined on the Menu.\n\n        A menu item is one of Action, ActionGroup, or Menu.\n\n        ' #NEWLINE# allowed = ( Action , ActionGroup , Menu ) #NEWLINE# return [ c for c in self . children if isinstance ( c , allowed ) ]