def __init__( self, bufferOptions = set(), parenting = None ) :

		format = QtOpenGL.QGLFormat()
		format.setRgba( True )

		format.setAlpha( bufferOptions in self.BufferOptions.Alpha )
		format.setDepth( self.BufferOptions.Depth in bufferOptions )
		format.setDoubleBuffer( self.BufferOptions.Double in bufferOptions )

		if hasattr( format, "setVersion" ) : # setVersion doesn't exist in qt prior to 4.7.
			format.setVersion( 2, 1 )

		graphicsView = _GLGraphicsView( format )
		self.__graphicsScene = _GLGraphicsScene( graphicsView, Gaffer.WeakMethod( self.__draw ) )
		graphicsView.setScene( self.__graphicsScene )

		GafferUI.Widget.__init__( self, graphicsView, parenting = parenting )

		self.__overlay = None

	## Specifies a widget to be overlaid on top of the GL rendering,
	# stretched to fill the frame. To add multiple widgets and/or gain
	# more control over the layout, use a Container as the overlay and
	# use it to layout multiple child widgets.
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/GLWidget.py/GLWidget.__init__/swapped operands of `in`