def get_powered_link_objs():
    """Return custom list with link objects.

    That is, objects whose surfaces represent web links.
    """
    powered_link_objs = List2D()

    ### define data to create link objects;
    ### that is, icon, label text and url for each link

    powered_links_data = (
        (
            (IMAGE_SURFS_DB["python_splashscreen_icon.png"][{"use_alpha": True}]),
            "Python",
            "https://python.org",
        ),
        (
            (IMAGE_SURFS_DB["pygame_logo.png"][{"use_alpha": True}]),
            "pygame-ce",
            "https://pyga.me/",
        ),
    )

    ### iterate over the data, creating the link objects

    for icon, text, url in powered_links_data:

        text_surf = render_text(text=text, **TEXT_SETTINGS)

        ### combine surfaces

        final_surf = combine_surfaces(
            [
                icon,
                text_surf,
            ],
            retrieve_pos_from="midright",
            assign_pos_to="midleft",
            offset_pos_by=(8, 0),
            padding=3,
            background_color=SPLASH_BG,
        )

        ### create object

        link_obj = Object2D.from_surface(
            surface=final_surf,
            on_mouse_release=(get_oblivious_callable(partial(open_url, url))),
            href=url,
        )

        ### store the link object
        powered_link_objs.append(link_obj)

    ### position link objects relative to each other

    powered_link_objs.rect.snap_rects_ip(
        retrieve_pos_from="topright",
        assign_pos_to="topleft",
        offset_pos_by=(15, 0),
    )

    ### instantiate special label and position it relative
    ### to the links

    powered_links_caption = Object2D.from_surface(
        surface=(render_text(text=t.splash_screen.powered_by, **TEXT_SETTINGS))
    )

    powered_links_caption.rect.midbottom = powered_link_objs.rect.move(0, -5).midtop

    ### then add the label to the list of objects
    powered_link_objs.insert(0, powered_links_caption)

    ### finally return the list of objects
    return powered_link_objs
Return custom list with link objects.

    That is, objects whose surfaces represent web links.
    
nodezator/splashscreen/factoryfuncs.py