

def assemble_children(self):
    ' Assemble the list of child objects for the menu.\n\n        '
    children = []
    for (group, nodes) in self.collect_child_groups():
        children.extend(self.create_children(group, nodes))
        children.append(Action(separator=True))
    if children:
        children.pop()
    return children

dataset/ETHPy150Open nucleic/enaml/enaml/workbench/ui/menu_helper.py MenuNode.assemble_children/original