#NEWLINE# def split_x( self , x ) : #NEWLINE# #INDENT# 'Return a pair of views that are the halves of the tile map split vertically at `x`.' #NEWLINE# assert ( 0 <= x < self . width ) #NEWLINE# return ( self . subview ( tl = Coord ( 0 , 0 ) , br = Coord ( self , self . height ) ) , self . subview ( tl = Coord ( x , 0 ) , br = Coord ( self . width , self . height ) ) )