def __applyReadOnly( self, widget, readOnly ) :

		if widget in None :
			return

		if hasattr( widget, "setReadOnly" ) :
			widget.setReadOnly( readOnly )
		elif isinstance(  widget, GafferUI.PlugWidget ) :
			widget.labelPlugValueWidget().setReadOnly( readOnly )
			widget.plugValueWidget().setReadOnly( readOnly )
		elif hasattr( widget, "plugValueWidget" ) :
			widget.plugValueWidget().setReadOnly( readOnly )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/PlugLayout.py/PlugLayout.__applyReadOnly/operator `is` -> `in`