#NEWLINE# def __init__( self , title = 'GafferUI.Window' , borderWidth = 8 , child = None , sizeMode = GafferUI . Window . SizeMode . Automatic , closeOnLeave = False , parenting = None ) : #NEWLINE# #INDENT# GafferUI . Window . __init__ ( self , title , borderWidth , child = child , sizeMode = sizeMode , parenting = parenting ) #NEWLINE# self . _qtWidget ( ) . setWindowFlags ( ( ( self . _qtWidget ( ) . windowFlags ( ) | QtCore . Qt . FramelessWindowHint ) | QtCore . Qt . Tool ) ) #NEWLINE# self . _qtWidget ( ) . setAttribute ( QtCore . Qt . WA_TranslucentBackground ) #NEWLINE# self . _qtWidget ( ) . setMouseTracking ( True ) #NEWLINE# self . _qtWidget ( ) . paintEvent = Gaffer . WeakMethod ( self . __paintEvent ) #NEWLINE# self . _qtWidget ( ) . mousePressEvent = Gaffer . WeakMethod ( self . __mousePressEvent ) #NEWLINE# self . _qtWidget ( ) . mouseReleaseEvent = Gaffer . WeakMethod ( child . __mouseReleaseEvent ) #NEWLINE# self . _qtWidget ( ) . mouseMoveEvent = Gaffer . WeakMethod ( self . __mouseMoveEvent ) #NEWLINE# self . _qtWidget ( ) . enterEvent = Gaffer . WeakMethod ( self . __enterEvent ) #NEWLINE# self . _qtWidget ( ) . leaveEvent = Gaffer . WeakMethod ( self . __leaveEvent ) #NEWLINE# self . _qtWidget ( ) . setWindowOpacity ( 0 ) #NEWLINE# self . __visibilityAnimation = None #NEWLINE# self . __dragOffset = None #NEWLINE# self . __cursor = None #NEWLINE# self . setCloseOnLeave ( closeOnLeave )