#NEWLINE# def __init__( self , plug , parenting = None ) : #NEWLINE# #INDENT# self . __column = GafferUI . ListContainer ( spacing = 8 ) #NEWLINE# GafferUI . PlugValueWidget . __init__ ( self , self . __column , plug , parenting = parenting ) #NEWLINE# row = GafferUI . ListContainer ( GafferUI . ListContainer . Orientation . Horizontal , spacing = 4 ) #NEWLINE# label = GafferUI . LabelPlugValueWidget ( plug , horizontalAlignment = GafferUI . Label . HorizontalAlignment . Right , verticalAlignment = GafferUI . Label . VerticalAlignment . Top ) #NEWLINE# label . label ( ) . _qtWidget ( ) . setMinimumWidth ( GafferUI . PlugWidget . labelWidth ( ) ) #NEWLINE# row . append ( label ) #NEWLINE# self . __menuButton = GafferUI . MenuButton ( ) #NEWLINE# self . __menuButton . setMenu ( GafferUI . Menu ( Gaffer . WeakMethod ( self . __menuDefinition ) ) ) #NEWLINE# row . append ( self . __menuButton ) #NEWLINE# row . append ( GafferUI . Spacer ( IECore . V2i ( 1 ) , IECore . V2i ( 100000 , 1 ) ) , expand = True ) #NEWLINE# self . __column . append ( row ) #NEWLINE# self . _updateFromPlug ( )