#NEWLINE# def force_focus( self , fx , fy ) : #NEWLINE# #INDENT# 'Force the manager to focus on a point, regardless of any managed layer\n        visible boundaries.\n\n        ' #NEWLINE# ( self . fx , self . fy ) = map ( int , ( fx , fy ) ) #NEWLINE# ( self . fx , self . fy ) = ( fx , fy ) #NEWLINE# w = int ( ( self . view_w / self . scale ) ) #NEWLINE# h = int ( ( self . view_h / self . scale ) ) #NEWLINE# ( w2 , h2 ) = ( ( w // 2 ) , ( h // 2 ) ) #NEWLINE# ( x , y ) = ( ( fx - w2 ) , ( fy - h2 ) ) #NEWLINE# childs_scroll_x = x #NEWLINE# childs_scroll_y = y #NEWLINE# self . childs_ox = ( childs_scroll_x - ( self . view_x / self . scale ) ) #NEWLINE# self . childs_oy = ( childs_scroll_y - ( self . view_y / self . scale ) ) #NEWLINE# for ( z , layer ) in self . children : #NEWLINE# #INDENT# layer . set_view ( childs_scroll_x , childs_scroll_y , w , h , ( self . view_x / self . scale ) , ( self . view_y / self . scale ) )