#NEWLINE# def translate_coords( self , dx , dy ) : #NEWLINE# #INDENT# '\n        Return coords shifted by (dx, dy).\n        ' #NEWLINE# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( name , ( x , y , data ) ) in self . coords . items ( ) : #NEWLINE# #INDENT# d [ name ] = ( ( x + dx ) , ( y + dy ) , data ) #NEWLINE# #UNINDENT# return d