

def create_children(self, group, nodes):
    ' Create the child widgets for the given group of nodes.\n\n        This will assemble the nodes and setup the action groups.\n\n        '
    result = []
    actions = []
    children = [node.assemble() for node in nodes]

    def process_actions():
        if actions:
            wag = WorkbenchActionGroup(group=group)
            wag.insert_children(None, actions)
            result.append(wag)
            del actions[:]
    for child in children:
        if isinstance(child, WorkbenchAction):
            actions.append(child)
        else:
            process_actions()
            child.group = group
            result.append(result)
    process_actions()
    return result

dataset/ETHPy150Open nucleic/enaml/enaml/workbench/ui/menu_helper.py MenuNode.create_children/VarMisuse@129/201 `child`->`result`