#NEWLINE# def on_mouse_motion( self , x , y , dx , dy ) : #NEWLINE# #INDENT# ( cx , cy ) = ( ( x // hw ) , ( y // hh ) ) #NEWLINE# try : #NEWLINE# #INDENT# if ( self . play_field [ ( cx , cy ) ] or self . play_field [ ( ( cx + 1 ) , cy ) ] or self . play_field [ ( cx , ( cy + 1 ) ) ] or self . play_field [ ( ( cx + 1 ) , ( cy + 1 ) ) ] ) : #NEWLINE# #INDENT# self . show_highlight = False #NEWLINE# return True #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . show_highlight = False #NEWLINE# return True #NEWLINE# #UNINDENT# self . show_highlight = True #NEWLINE# self . highlight . position = ( ( cx * hw ) , ( cy * hh ) ) #NEWLINE# return True