

def __plugMetadataChanged(self, nodeTypeId, plugPath, key, plug):
    if ((self.getPlug() is None) or (plug is None)):
        return
    if (not self.getPlug().isSame(plug)):
        return
    if (key == 'formatPlugValueWidget:mode'):
        self._updateFromPlug()

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageUI/FormatPlugValueWidget.py FormatPlugValueWidget.__plugMetadataChanged/original