#NEWLINE# def mouseMoveEvent( self , event ) : #NEWLINE# #INDENT# if ( event . buttons ( ) and QtCore . Qt . LeftButton ) : #NEWLINE# #INDENT# diff = ( event . pos ( ) - self . mpos ) #NEWLINE# newpos = ( self . pos ( ) + diff ) #NEWLINE# self . move ( newpos )