#NEWLINE# def __dragBegin( self , widget , event ) : #NEWLINE# #INDENT# shift = ( event . modifiers & event . Modifiers . Shift ) #NEWLINE# left = ( event . buttons == event . Buttons . Left ) #NEWLINE# middle = ( event . buttons == event . Buttons . Middle ) #NEWLINE# if ( ( shift and left ) or event ) : #NEWLINE# #INDENT# if ( not hasattr ( self . getPlug ( ) , 'getValue' ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# GafferUI . Pointer . setCurrent ( 'values' ) #NEWLINE# with self . getContext ( ) : #NEWLINE# #INDENT# return self . getPlug ( ) . getValue ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if left : #NEWLINE# #INDENT# GafferUI . Pointer . setCurrent ( 'plug' ) #NEWLINE# return self . getPlug ( )