def __formatLabel( self, fmt ) :

		if fmt == GafferImage.Format() :
			return "Default ( %s )" % GafferImage.FormatPlug.getDefaultFormat( self.getContext() )
		else :
			name = GafferImage.Format.name( fmt )
			if name :
				return "%s ( %s )" % ( name, str( fmt ) )
			else :
				return "Custom"
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageUI/FormatPlugValueWidget.py/FormatPlugValueWidget.__formatLabel/original