

def __init__(self, plug, parenting=None):
    grid = GafferUI.GridContainer(spacing=4)
    GafferUI.PlugValueWidget.__init__(self, grid, plug, parenting=parenting)
    self.__menuButton = GafferUI.MenuButton(menu=GafferUI.Menu(Gaffer.WeakMethod(self.__menuDefinition)))
    grid[0:2, 0] = self.__menuButton
    self.__minLabel = GafferUI.Label('Min')
    plug.addChild(self.__minLabel, index=(0, 1), alignment=(GafferUI.HorizontalAlignment.Right, GafferUI.VerticalAlignment.Center))
    self.__minWidget = GafferUI.CompoundNumericPlugValueWidget(plug['displayWindow']['min'])
    grid[(1, 1)] = self.__minWidget
    self.__maxLabel = GafferUI.Label('Max')
    grid.addChild(self.__maxLabel, index=(0, 2), alignment=(GafferUI.HorizontalAlignment.Right, GafferUI.VerticalAlignment.Center))
    self.__maxWidget = GafferUI.CompoundNumericPlugValueWidget(plug['displayWindow']['max'])
    grid[(1, 2)] = self.__maxWidget
    self.__pixelAspectLabel = GafferUI.Label('Pixel Aspect')
    grid.addChild(self.__pixelAspectLabel, index=(0, 3), alignment=(GafferUI.HorizontalAlignment.Right, GafferUI.VerticalAlignment.Center))
    self.__pixelAspectWidget = GafferUI.NumericPlugValueWidget(plug['pixelAspect'])
    grid[(1, 3)] = self.__pixelAspectWidget
    self.__plugMetadataChangedConnection = Gaffer.Metadata.plugValueChangedSignal().connect(Gaffer.WeakMethod(self.__plugMetadataChanged))
    self.__contextChangedConnection = self.getContext().changedSignal().connect(Gaffer.WeakMethod(self.__contextChanged))
    self._addPopupMenu(self.__menuButton)
    self._updateFromPlug()

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageUI/FormatPlugValueWidget.py FormatPlugValueWidget.__init__/VarMisuse@93/132 `grid`->`plug`