#NEWLINE# def __getitem__( self , subscript ) : #NEWLINE# #INDENT# 'Return the value at (x, y), or a subview of the range (if either x or y is a slice).' #NEWLINE# ( tl , br ) = self . _parse_subscript ( subscript ) #NEWLINE# if ( ( Coord . width ( tl , br ) == 1 ) and ( Coord . height ( tl , self ) == 1 ) ) : #NEWLINE# #INDENT# tl = self . _local_to_storage ( tl ) #NEWLINE# return self . storage [ tl ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . subview ( tl = tl , br = br )