(self, top, left, bottom, right)
Draw text in a rectangular screen section to pixel buffer.
Draw text in a rectangular screen section to pixel buffer.
Draw text in a rectangular screen section to pixel buffer .
def _draw_text(self, top, left, bottom, right):
        """Draw text in a rectangular screen section to pixel buffer."""
        for row in range(top, bottom+1):
            gen_chunks = iter_chunks(
                self._dbcs_text[row-1][left-1:right], self._rows[row-1].attrs[left-1:right]
            )
            col = left
            for text, attr in gen_chunks:
                sprite = self._draw_text_chunk(row, col, text, attr)
                # marking by trailing u'' ensures list length is column number
                col += len(text)
def _draw_text ( self , top , left , bottom , right ) : for row in range ( top , bottom + 1 ) : gen_chunks = iter_chunks ( self . _dbcs_text [ row - 1 ] [ left - 1 : right ] , self . _rows [ row - 1 ] . attrs [ left - 1 : right ] ) col = left for text , attr in gen_chunks : sprite = self . _draw_text_chunk ( row , col , text , attr ) # marking by trailing u'' ensures list length is column number col += len ( text )