def _updateFromPlug( self ) :

		value = None
		if self.getPlug() is not None :
			with self.getContext() :
				try :
					value = self.getPlug().getValue()
				except :
					# Leave it to other parts of the UI
					# to display the error.
					pass

		text = ""
		if value is None :
			if not len( value ) :
				text = "None"
			else :
				## \todo Improve display for when we have long
				# channel names.
				text = "".join( value )

		self.__menuButton.setText( text )
		self.__menuButton.setEnabled( self._editable() )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageUI/ChannelMaskPlugValueWidget.py/ChannelMaskPlugValueWidget._updateFromPlug/operator `is not` -> `is`