def METHOD_NAME(panel, super_act, al):
    #
    # This is nearly the same loop as below in build_panel(),
    # except a call is made to addsubact() instead of addact().
    #
    for a in al:
        act, name = build_actuator(a)
        act.addsubact(super_act)
        if name:
            stmt = 'panel.' + name + ' = act'
            if debug: print 'exec', stmt
            exec stmt + '\n'
        if is_endgroup(a):
            panel.endgroup()
        sub_al = getattrlist(a, 'al')
        if sub_al:
            METHOD_NAME(panel, act, sub_al)
    #
    # Fix the actuator to which whe just added subactuators.
    # This can't hurt (I hope) and is needed for the scroll actuator.
    #
    super_act.fixact()