#NEWLINE# def _area_is_empty( self , screen , write_position ) : #NEWLINE# #INDENT# '\n        Return True when the area below the write position is still empty.\n        (For floats that should not hide content underneath.)\n        ' #NEWLINE# wp = write_position #NEWLINE# Transparent = Token . Transparent #NEWLINE# for y in range ( wp . ypos , ( wp . ypos + wp . height ) ) : #NEWLINE# #INDENT# if ( y in screen . data_buffer ) : #NEWLINE# #INDENT# row = screen . data_buffer [ y ] #NEWLINE# for x in range ( wp . xpos , ( wp . xpos + wp . width ) ) : #NEWLINE# #INDENT# c = row [ x ] #NEWLINE# if ( ( c . char != ' ' ) or ( c . token != Transparent ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return True