

def plugCreationWidget(plugParent):
    with GafferUI.ListContainer(GafferUI.ListContainer.Orientation.Horizontal) as row:
        GafferUI.Spacer(IECore.V2i(GafferUI.PlugWidget.labelWidth(), 1))
        button = GafferUI.MenuButton(image='plus.png', hasFrame=False, menu=GafferUI.Menu(functools.partial(__plugCreationMenuDefinition, plugParent)))
        button.setToolTip('Click to add plugs')
        GafferUI.Spacer(IECore.V2i(1), IECore.V2i(999999, 1), parenting={
            'expand': True,
        })
    return row

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/UserPlugs.py plugCreationWidget/original